make SW use pinia cache instead of vuex
This commit is contained in:
parent
392b595dc9
commit
650785bb5b
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue