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