diff options
| author | Christine Dodrill <me@christine.website> | 2018-10-20 13:34:44 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-10-20 13:34:44 -0700 |
| commit | b7493881049aaa908de04837d004ec5cf2d91b90 (patch) | |
| tree | 01f2ffa0dcedfb77cf8ff33a4f0d1ed69b7b1860 /templates | |
| parent | df2301f496ce0bd81bc8967fb27d49f7c76fe948 (diff) | |
| download | xesite-b7493881049aaa908de04837d004ec5cf2d91b90.tar.xz xesite-b7493881049aaa908de04837d004ec5cf2d91b90.zip | |
fix service worker
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index 4bdea31..c00bc1e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -66,9 +66,7 @@ if (navigator.serviceWorker.controller) { console.log("Active service worker found, no need to register"); } else { - navigator.serviceWorker.register("/static/js/pwabuilder-sw.js", { - scope: "https://christine.website/" - }).then(function(reg) { + navigator.serviceWorker.register("/sw.js").then(function(reg) { console.log("Service worker has been registered for scope:" + reg.scope); }); } |
