From 1ca68b8488253f7ba1631561fb870030eeca9dcd Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 16 Aug 2017 21:44:59 +0300 Subject: [PATCH] fixup ede1187b: settings may be missing --- js/prefs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/prefs.js b/js/prefs.js index 45adb4a7..00808e1e 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -193,7 +193,7 @@ var prefs = new function Prefs() { if (!BG || BG === window) { affectsIcon.forEach(key => this.broadcast(key, values[key], {sync: false})); - const importFromSync = synced => { + const importFromSync = (synced = {}) => { for (const key in defaults) { if (key in synced) { this.set(key, synced[key], {sync: false});