From 98c9b5cc034d073b930788728ce36bdd2c6fc61b Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Tue, 18 Jun 2024 23:42:05 +0100 Subject: [PATCH] Adjust path types in build output --- src/lib/stores/version.ts | 2 +- static/sw.js | 17 ----------------- svelte.config.js | 3 +++ 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 static/sw.js diff --git a/src/lib/stores/version.ts b/src/lib/stores/version.ts index 66f5f39..ea385fa 100644 --- a/src/lib/stores/version.ts +++ b/src/lib/stores/version.ts @@ -1,3 +1,3 @@ -export const version: string = '2024.06.1'; +export const version: string = '2024.06.2'; export const versionTag: string = ''; export const showWelcome: boolean = false; diff --git a/static/sw.js b/static/sw.js deleted file mode 100644 index b6ab909..0000000 --- a/static/sw.js +++ /dev/null @@ -1,17 +0,0 @@ -// Remove the service worker /sw.js from legacy installations -// This should then enable the new /service-worker.js to be installed - -self.addEventListener("activate", function (e) { - console.log(`Unregistering service worker`); - self.registration - .unregister() - .then(function () { - return self.clients.matchAll(); - }) - .then(function (clients) { - clients.forEach((client) => { - console.log(`Navigating ${client.url}`); - client.navigate(client.url); - }); - }); -}); diff --git a/svelte.config.js b/svelte.config.js index 2180893..87cf24e 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -10,6 +10,9 @@ const config = { precompress: true, strict: true, }), + paths: { + relative: false, + }, }, };