From 0e99679e00f014c9948e973a44e9b1ea1b538767 Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Wed, 6 Mar 2024 16:41:18 -0700 Subject: [PATCH] Fix PWA build errors Signed-off-by: Justin Georgi --- src/components/app.vue | 2 +- src/index.html | 2 +- src/manifest.json | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/app.vue b/src/components/app.vue index 10a0235..f6097de 100644 --- a/src/components/app.vue +++ b/src/components/app.vue @@ -146,7 +146,7 @@ // Register service worker (only on production build) serviceWorker: process.env.NODE_ENV ==='production' ? { - path: '/service-worker.js', + path: './service-worker.js', } : {}, // Input settings diff --git a/src/index.html b/src/index.html index d5ed77a..c668016 100644 --- a/src/index.html +++ b/src/index.html @@ -10,7 +10,7 @@ * Disables use of inline scripts in order to mitigate risk of XSS vulnerabilities. To change this: * Enable inline JS: add 'unsafe-inline' to default-src --> - + diff --git a/src/manifest.json b/src/manifest.json index 0531d75..0524622 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -9,32 +9,32 @@ "theme_color": "#002f65", "icons": [ { - "src": "/icons/128x128.png", + "src": "../icons/128x128.png", "sizes": "128x128", "type": "image/png" }, { - "src": "/icons/144x144.png", + "src": "../icons/144x144.png", "sizes": "144x144", "type": "image/png" }, { - "src": "/icons/152x152.png", + "src": "../icons/152x152.png", "sizes": "152x152", "type": "image/png" }, { - "src": "/icons/192x192.png", + "src": "../icons/192x192.png", "sizes": "192x192", "type": "image/png" }, { - "src": "/icons/256x256.png", + "src": "../icons/256x256.png", "sizes": "256x256", "type": "image/png" }, { - "src": "/icons/512x512.png", + "src": "../icons/512x512.png", "sizes": "512x512", "type": "image/png" }