|
|
@ -1,23 +1,17 @@ |
|
|
async function initCache() { |
|
|
async function initCache() { |
|
|
const cache = await caches.open('v1') |
|
|
const cache = await caches.open('v1') |
|
|
await cache.addAll([ |
|
|
await cache.addAll([ |
|
|
|
|
|
'/', |
|
|
|
|
|
'/index.html', |
|
|
'/app.js', |
|
|
'/app.js', |
|
|
'/components/file-group-page.js', |
|
|
'/components/page.js', |
|
|
'/components/header.js', |
|
|
|
|
|
'/components/layout.js', |
|
|
'/components/layout.js', |
|
|
|
|
|
'/components/header.js', |
|
|
'/components/nav-menu.js', |
|
|
'/components/nav-menu.js', |
|
|
'/components/page.js', |
|
|
|
|
|
'/dialog/dialog.js', |
|
|
'/dialog/dialog.js', |
|
|
'/editor/app.js', |
|
|
|
|
|
'/editor/file-group.js', |
|
|
|
|
|
'/editor/file-view.js', |
|
|
|
|
|
'/editor/text-edit.js', |
|
|
|
|
|
'/forms/button-group.js', |
|
|
'/forms/button-group.js', |
|
|
'/index.html', |
|
|
|
|
|
'/loader/builder.js', |
|
|
|
|
|
'/loader/editor-build.js', |
|
|
|
|
|
'/menu/dropdown.js', |
|
|
'/menu/dropdown.js', |
|
|
]) //1
|
|
|
]) //2
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
self.addEventListener("install", event => { |
|
|
self.addEventListener("install", event => { |
|
|
|