aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'index.html')
-rw-r--r--index.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.html b/index.html
index 5e7f69f..c285c1c 100644
--- a/index.html
+++ b/index.html
@@ -104,7 +104,13 @@
</div>
</div>
-
+<script>
+if('serviceWorker' in navigator) {
+ navigator.serviceWorker
+ .register('/sw.js')
+ .then(function() { console.log("Service Worker Registered"); });
+}
+</script>
<script src="js/timeline.js"></script>