fixup ede1187b: settings may be missing

This commit is contained in:
tophf 2017-08-16 21:44:59 +03:00
parent a077de3624
commit 1ca68b8488

View File

@ -193,7 +193,7 @@ var prefs = new function Prefs() {
if (!BG || BG === window) { if (!BG || BG === window) {
affectsIcon.forEach(key => this.broadcast(key, values[key], {sync: false})); affectsIcon.forEach(key => this.broadcast(key, values[key], {sync: false}));
const importFromSync = synced => { const importFromSync = (synced = {}) => {
for (const key in defaults) { for (const key in defaults) {
if (key in synced) { if (key in synced) {
this.set(key, synced[key], {sync: false}); this.set(key, synced[key], {sync: false});