aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2018-10-20 13:34:44 -0700
committerChristine Dodrill <me@christine.website>2018-10-20 13:34:44 -0700
commitb7493881049aaa908de04837d004ec5cf2d91b90 (patch)
tree01f2ffa0dcedfb77cf8ff33a4f0d1ed69b7b1860 /templates/base.html
parentdf2301f496ce0bd81bc8967fb27d49f7c76fe948 (diff)
downloadxesite-b7493881049aaa908de04837d004ec5cf2d91b90.tar.xz
xesite-b7493881049aaa908de04837d004ec5cf2d91b90.zip
fix service worker
Diffstat (limited to 'templates/base.html')
-rw-r--r--templates/base.html4
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);
});
}