fixup! Fix service worker placement
This commit is contained in:
parent
d0f9d2426a
commit
1c909a5c77
1 changed files with 1 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
let socket: WebSocket | null = null;
|
||||
|
||||
if ('serviceWorker' in navigator) {
|
||||
navigator.serviceWorker.register('/static/js/sw.js')
|
||||
navigator.serviceWorker.register('/sw.js')
|
||||
.then(function (registration) {
|
||||
console.log('Registration successful, scope is:', registration.scope);
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue