broadcast affectsIcon's keys on startup

This commit is contained in:
tophf 2017-04-21 13:02:01 +03:00
parent 47eefd1cd2
commit 3713c252a8

View File

@ -184,6 +184,8 @@ var prefs = new function Prefs() {
}
if (!BG || BG == window) {
affectsIcon.forEach(key => this.broadcast(key, values[key], {sync: false}));
getSync().get('settings', ({settings: synced} = {}) => {
if (synced) {
for (const key in defaults) {