From 10b82ae7ccda45fadefc724ae44835936508218f Mon Sep 17 00:00:00 2001 From: tophf Date: Wed, 24 Jan 2018 03:47:26 +0300 Subject: [PATCH] actually import settings from sync fixes #331 --- js/prefs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/prefs.js b/js/prefs.js index f1adffcb..e889caa7 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -272,7 +272,7 @@ var prefs = new function Prefs() { if (BG && BG !== window) return; if (BG === window) { affectsIcon.forEach(key => this.broadcast(key, values[key], {sync: false})); - chromeSync.getValue('settings', settings => importFromSync.call(this, settings)); + chromeSync.getValue('settings').then(settings => importFromSync.call(this, settings)); } chrome.storage.onChanged.addListener((changes, area) => { if (area === 'sync' && 'settings' in changes) {