aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2018-02-09 20:19:19 +0530
committerGitHub <noreply@github.com>2018-02-09 20:19:19 +0530
commit5227524de7cb45c193c7f380615db223ad7c4ff8 (patch)
treec43d499ac7bb197a28025894578a7bda7147be90 /index.html
parentf9b022efd3a36e11c7ae50ba6ded13132d027841 (diff)
Update index.html
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>