aboutsummaryrefslogtreecommitdiff
path: root/public/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/public/index.html b/public/index.html
index 090b0d5..0e74a89 100644
--- a/public/index.html
+++ b/public/index.html
@@ -40,5 +40,12 @@
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
+ <script>
+ if ('serviceWorker' in navigator) {
+ window.addEventListener('load', () => {
+ navigator.serviceWorker.register('./service-worker.js')
+ })
+ }
+ </script>
</body>
</html>