mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Sync color schemes across tabs
This commit is contained in:
@@ -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))
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user