fixup! Fix service worker placement

This commit is contained in:
William Brawner 2022-02-04 21:24:42 -07:00
parent d0f9d2426a
commit 1c909a5c77

View file

@ -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);
})