We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1381bdb + 3633510 commit 6a4ec29Copy full SHA for 6a4ec29
lib/web_push_elixir/main.js
@@ -1,5 +1,5 @@
1
navigator.serviceWorker
2
- .register('/service-worker.js')
+ .register(`${ window.location.pathname }service-worker.js`)
3
.then(registration => {
4
console.log('Service worker successfully registered.');
5
})
@@ -26,4 +26,4 @@ button.addEventListener('click', event => {
26
});
27
28
29
-});
+});
0 commit comments