Corrected SW root path

Corrected path for production.

Removed "offline.txt" from cache.
This commit is contained in:
Victor Westerlund 2020-12-14 08:11:26 +01:00
parent a9d7083e23
commit a81fc8f212

View file

@ -1,5 +1,5 @@
const version = "12062129";
const root = "/victorwesterlund.com/public/";
const version = "12140809";
const root = "/";
let activeCaches = [
`content-${version}`
@ -9,7 +9,6 @@ self.addEventListener("install", event => {
event.waitUntil(
caches.open(`content-${version}`).then(cache => cache.addAll([
root,
root + "offline.txt",
root + "assets/css/style.css",
root + "assets/img/favicon.png",
root + "assets/js/script.js",