From f9a4b313dcb29282f01469f9307bf000e15bf7ac Mon Sep 17 00:00:00 2001 From: root Date: Fri, 26 Aug 2022 04:25:32 +0530 Subject: [PATCH] Sync color schemes across tabs --- src/store/prefs-store.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/store/prefs-store.js b/src/store/prefs-store.js index 262117e..26ffdf3 100644 --- a/src/store/prefs-store.js +++ b/src/store/prefs-store.js @@ -113,6 +113,8 @@ function initializePrefEvents (store) { window.addEventListener('storage', (storageEv) => { if (storageEv.key === 'PREFERENCES') { store.commit('prefs/replacePrefs', JSON.parse(storageEv.newValue)) + } else if (storageEv.key === 'COLOR_SCHEME') { + store.commit('prefs/setColorScheme', JSON.parse(storageEv.newValue)) } }) }