Skip to content

Commit

Permalink
Set libresilient.js scope to /
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Oct 19, 2024
1 parent b168304 commit 5f3166a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libresilient.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if ('serviceWorker' in navigator) {
//
// so, "./" is the broadest scope, also the default. but the ServiceWorker can be registered
// for a narrower scope, for example "./subdir/".
scope: './'
scope: '/'
}).then(function(reg) {
// Success.
console.log('LibResilient: Service Worker registered.')
Expand Down

0 comments on commit 5f3166a

Please sign in to comment.