From 650785bb5b9c4631ee92f6006677511ac712ef01 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 16 Mar 2026 15:40:42 +0200 Subject: [PATCH] make SW use pinia cache instead of vuex --- src/sw.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sw.js b/src/sw.js index e3225c91d..bfe35d3c5 100644 --- a/src/sw.js +++ b/src/sw.js @@ -34,14 +34,14 @@ function getWindowClients() { } const setSettings = async () => { - const vuexState = await storage.getItem('vuex-lz') - const locale = vuexState.config.interfaceLanguage || 'en' + const piniaState = await storage.getItem('pinia-local-sync_config') + const locale = piniaState.prefsStorage.simple.interfaceLanguage || 'en' i18n.locale = locale const notificationsNativeArray = Object.entries( - vuexState.config.notificationNative, + piniaState.prefsStorage.simple.notificationNative, ) state.webPushAlwaysShowNotifications = - vuexState.config.webPushAlwaysShowNotifications + piniaState.prefsStorage.simple.webPushAlwaysShowNotifications state.allowedNotificationTypes = new Set( notificationsNativeArray