mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-07 06:40:54 +00:00
Fix setting sync using BroadcastChannel, since localStorage events are unreliable. Thanks Chrome. :D
This commit is contained in:
parent
8ce07a5603
commit
2e5c99c727
3 changed files with 57 additions and 2 deletions
|
@ -115,10 +115,13 @@ export default class SettingsManager extends Module {
|
|||
if ( key === 'profiles' )
|
||||
return this.loadProfiles();
|
||||
|
||||
if ( ! key.startsWith('p:') )
|
||||
return;
|
||||
|
||||
// If we're still here, it means an individual setting was changed.
|
||||
// Look up the profile it belongs to and emit a changed event from
|
||||
// that profile, thus notifying any contexts or UI instances.
|
||||
key = key.substr(2);
|
||||
const idx = key.indexOf(':');
|
||||
if ( idx === -1 )
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue