From da6107a80791ff4b5e84c2ee3bfc710809aa2bfe Mon Sep 17 00:00:00 2001 From: Hiram <> Date: Sat, 1 Jun 2024 01:23:31 +0800 Subject: [PATCH] [bugs] pinia status missing --- src/renderer/src/store/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/src/store/index.ts b/src/renderer/src/store/index.ts index 249b11692..275bca4e2 100644 --- a/src/renderer/src/store/index.ts +++ b/src/renderer/src/store/index.ts @@ -9,7 +9,7 @@ store.use( // If set to true this tab tries to immediately recover the shared state from another tab. Defaults to true. initialize: true, // Enforce a type. One of native, idb, localstorage or node. Defaults to native. - type: 'localstorage', + type: window.BroadcastChannel ? 'native' : 'localstorage', }), );