diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2018-02-09 20:19:19 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-09 20:19:19 +0530 |
commit | 5227524de7cb45c193c7f380615db223ad7c4ff8 (patch) | |
tree | c43d499ac7bb197a28025894578a7bda7147be90 | |
parent | f9b022efd3a36e11c7ae50ba6ded13132d027841 (diff) |
Update index.html
-rw-r--r-- | index.html | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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> |