diff --git a/package.json b/package.json index 7ee8123..41fd4cb 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,12 @@ "localStorage", "URLSearchParams", "IntersectionObserver", - "URL" + "URL", + "self", + "caches", + "__routes__", + "__shell__", + "__assets__" ], "ignore": [ "dist", diff --git a/templates/main.js b/templates/main.js index b162d05..a7cdb8f 100644 --- a/templates/main.js +++ b/templates/main.js @@ -1,5 +1,3 @@ -/* global __routes__ */ - import { init } from 'sapper/runtime.js' import { offlineNotifiction } from '../routes/_utils/offlineNotification' import { serviceWorkerClient } from '../routes/_utils/serviceWorkerClient' diff --git a/templates/service-worker.js b/templates/service-worker.js index 827aca2..9867170 100644 --- a/templates/service-worker.js +++ b/templates/service-worker.js @@ -1,5 +1,3 @@ -/* global self, caches, __shell__, __assets__, __routes__ */ - const timestamp = '__timestamp__' const ASSETS = `cache${timestamp}`