You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<palign="center"><b>Remote config, update walls and maintenance mode for web apps — signed at the edge, verified in the browser, 6.5 KB gzipped.</b></p>
12
+
<palign="center"><b>Remote config, update walls and maintenance mode for web apps. Signed at the edge, verified in the browser, 6.5 KB gzipped.</b></p>
13
13
14
14
## Installation
15
15
16
-
`@ripstop/web` is not on npm yet. Until it is, install straight from GitHub —
17
-
the package builds itself on install:
16
+
`@ripstop/web` is not on npm yet. Until it is, install straight from GitHub.
17
+
The package builds itself on install:
18
18
19
19
```bash
20
20
npm install github:ripstop-dev/ripstop-web
@@ -53,12 +53,12 @@ switch (decision.type) {
53
53
54
54
`appVersion` is explicit here and always will be. The Swift and Flutter SDKs
55
55
read the installed version from the bundle, but a browser has no bundle and no
56
-
installed version to read — the only thing that knows which build is running is
56
+
installed version to read. The only thing that knows which build is running is
57
57
the build itself, so it has to hand the string over. Every bundler can: Vite's
58
58
`define`, webpack's `DefinePlugin`, or an env var read at build time.
59
59
60
60
Pass a semantic version, not a commit SHA. The rules are ordered as semantic
61
-
versions, and anything that is not one is treated as no opinion — which lets the
61
+
versions, and anything that is not one is treated as no opinion, which lets the
62
62
app run rather than walling it, but also means your rules do nothing.
63
63
64
64
## What `force` means on the web
@@ -70,7 +70,7 @@ response is usually `location.reload()`.
70
70
71
71
That is also why the web SDK ships no prebuilt walls. On mobile, a full-screen
72
72
update wall is the same shape in every app. On the web it is a banner, a modal,
73
-
or a route — entirely yours. You get the decision and the copy you wrote in the
73
+
or a route, entirely yours. You get the decision and the copy you wrote in the
0 commit comments