diff options
Diffstat (limited to 'js/app.js')
-rw-r--r-- | js/app.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/app.js b/js/app.js new file mode 100644 index 0000000..4ad37f2 --- /dev/null +++ b/js/app.js @@ -0,0 +1,5 @@ +if ("serviceWorker" in navigator) { + navigator.serviceWorker.register("/sw.js") + .then(() => console.log("Service worker registered")) + .catch((err) => console.log("Service worker registration failed", err)); +}
\ No newline at end of file |