mirror of
https://github.com/kevin-DL/sapper-template.git
synced 2026-01-17 04:14:57 +00:00
Update service-worker.js
This commit is contained in:
@@ -4,7 +4,7 @@ const ASSETS = `cache${timestamp}`;
|
|||||||
|
|
||||||
// `shell` is an array of all the files generated by webpack,
|
// `shell` is an array of all the files generated by webpack,
|
||||||
// `files` is an array of everything in the `static` directory
|
// `files` is an array of everything in the `static` directory
|
||||||
const to_cache = shell.concat(ASSETS);
|
const to_cache = shell.concat(files);
|
||||||
const cached = new Set(to_cache);
|
const cached = new Set(to_cache);
|
||||||
|
|
||||||
self.addEventListener('install', event => {
|
self.addEventListener('install', event => {
|
||||||
|
|||||||
Reference in New Issue
Block a user