aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/service-worker.ts5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/service-worker.ts b/src/service-worker.ts
index 83aabcee..b8fa198f 100644
--- a/src/service-worker.ts
+++ b/src/service-worker.ts
@@ -1,7 +1,6 @@
/// <reference lib="webworker" />
import { build, files, version } from '$service-worker';
-import { dev } from '$app/environment';
const worker = self as unknown as ServiceWorkerGlobalScope;
const FILES = `cache${version}`;
@@ -10,10 +9,6 @@ const FILES = `cache${version}`;
const to_cache = build.concat(files);
const staticAssets = new Set(to_cache);
-navigator.serviceWorker.register('/service-worker.js', {
- type: dev ? 'module' : 'classic'
-});
-
worker.addEventListener('install', (event) => {
event.waitUntil(
caches