mirror of
https://codeberg.org/vlw/victorwesterlund.com.git
synced 2025-09-14 11:33:41 +02:00
Corrected SW root path
Corrected path for production. Removed "offline.txt" from cache.
This commit is contained in:
parent
a9d7083e23
commit
a81fc8f212
1 changed files with 2 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
const version = "12062129";
|
const version = "12140809";
|
||||||
const root = "/victorwesterlund.com/public/";
|
const root = "/";
|
||||||
|
|
||||||
let activeCaches = [
|
let activeCaches = [
|
||||||
`content-${version}`
|
`content-${version}`
|
||||||
|
@ -9,7 +9,6 @@ self.addEventListener("install", event => {
|
||||||
event.waitUntil(
|
event.waitUntil(
|
||||||
caches.open(`content-${version}`).then(cache => cache.addAll([
|
caches.open(`content-${version}`).then(cache => cache.addAll([
|
||||||
root,
|
root,
|
||||||
root + "offline.txt",
|
|
||||||
root + "assets/css/style.css",
|
root + "assets/css/style.css",
|
||||||
root + "assets/img/favicon.png",
|
root + "assets/img/favicon.png",
|
||||||
root + "assets/js/script.js",
|
root + "assets/js/script.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue