Update service-worker.js

This commit is contained in:
Rich Harris
2018-10-05 21:49:55 -04:00
committed by GitHub
parent 1afd4e6dbc
commit d0685965fe

View File

@@ -4,7 +4,7 @@ const ASSETS = `cache${timestamp}`;
// `shell` is an array of all the files generated by webpack,
// `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);
self.addEventListener('install', event => {