From 04c5ac11636a4ffb5d3ac0c510b028edfb7fc057 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Fri, 11 Aug 2023 12:18:52 +0200 Subject: [PATCH] fix(pwa): improvements to the PWA configuration Signed-off-by: Thomas Citharel --- js/vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/vite.config.js b/js/vite.config.js index e56efeef8..7250205a9 100644 --- a/js/vite.config.js +++ b/js/vite.config.js @@ -19,11 +19,10 @@ export default defineConfig(({ command }) => { plugins: [ vue(), VitePWA({ - // registerType: "autoUpdate", + registerType: "autoUpdate", strategies: "injectManifest", srcDir: "src", filename: "service-worker.ts", - theme_color: "#ffd599", // injectRegister: "auto", // devOptions: { // enabled: true, @@ -32,6 +31,7 @@ export default defineConfig(({ command }) => { name: "Mobilizon", short_name: "Mobilizon", orientation: "portrait-primary", + theme_color: "#ffd599", icons: [ { src: "./img/icons/android-chrome-192x192.png",