From cb2d716b38ca330b4d183a47ff9a8142fdf58c7f Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 20 Oct 2018 13:03:36 -0700 Subject: templates/base: add PWA manifest --- templates/base.html | 1 + 1 file changed, 1 insertion(+) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 13722a0..52a98fc 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,6 +5,7 @@ + -- cgit v1.2.3 From df2301f496ce0bd81bc8967fb27d49f7c76fe948 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 20 Oct 2018 13:17:13 -0700 Subject: static: support offline page service worker --- templates/base.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'templates/base.html') diff --git a/templates/base.html b/templates/base.html index 52a98fc..4bdea31 100644 --- a/templates/base.html +++ b/templates/base.html @@ -62,6 +62,17 @@
Copyright 2018 Christine Dodrill. Any and all opinions listed here are my own and not representative of my employer.
+ -- cgit v1.2.3 From b7493881049aaa908de04837d004ec5cf2d91b90 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 20 Oct 2018 13:34:44 -0700 Subject: fix service worker --- templates/base.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'templates/base.html') 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); }); } -- cgit v1.2.3