Skip to content

Commit 4a50271

Browse files
jeffposnickjakearchibald
authored andcommitted
Add trailing '/' to example of max scope (#1422)
* Add trailing '/' to example of max scope * Updating v1
1 parent f03b6d1 commit 4a50271

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3442,9 +3442,9 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
34423442

34433443
<pre highlight="js">
34443444
// Maximum allowed scope defaults to the path the script sits in
3445-
// "/js" in this example
3445+
// "/js/" in this example
34463446
navigator.serviceWorker.register("/js/sw.js").then(() => {
3447-
console.log("Install succeeded with the default scope '/js'.");
3447+
console.log("Install succeeded with the default scope '/js/'.");
34483448
});
34493449
</pre>
34503450
</div>

docs/v1/index.bs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,9 +3234,9 @@ spec: webappsec-referrer-policy; urlPrefix: https://w3c.github.io/webappsec-refe
32343234

32353235
<pre highlight="js">
32363236
// Maximum allowed scope defaults to the path the script sits in
3237-
// "/js" in this example
3237+
// "/js/" in this example
32383238
navigator.serviceWorker.register("/js/sw.js").then(() => {
3239-
console.log("Install succeeded with the default scope '/js'.");
3239+
console.log("Install succeeded with the default scope '/js/'.");
32403240
});
32413241
</pre>
32423242
</div>

0 commit comments

Comments
 (0)