summaryrefslogtreecommitdiff
path: root/registerSW.js
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2026-06-04 13:37:51 +0000
committerGitHub <[email protected]>2026-06-04 13:37:51 +0000
commit2f3230cc2b51abdb3d286ba0ce70b359144f8a1b (patch)
treece56c9795e56b28418516c588018410454e93f96 /registerSW.js
Deploy to GitHub pagesgh-pages
Diffstat (limited to 'registerSW.js')
-rw-r--r--registerSW.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/registerSW.js b/registerSW.js
new file mode 100644
index 0000000..179c13c
--- /dev/null
+++ b/registerSW.js
@@ -0,0 +1 @@
+if('serviceWorker' in navigator) {window.addEventListener('load', () => {navigator.serviceWorker.register('./sw.js', { scope: './' })})} \ No newline at end of file