Index: lib/prefs.js |
=================================================================== |
--- a/lib/prefs.js |
+++ b/lib/prefs.js |
@@ -327,15 +327,15 @@ |
let prefs = Object.keys(defaults); |
prefs.forEach(addPreference); |
- let localLoaded = new Promise(resolve => |
+ let localLoaded = new Promise((resolve, reject) => |
{ |
- ext.storage.get(prefs.map(prefToKey), items => |
+ ext.storage.get(prefs.map(prefToKey)).then(items => |
{ |
for (let key in items) |
overrides[keyToPref(key)] = items[key]; |
resolve(); |
- }); |
+ }, reject); |
}); |
let managedLoaded = new Promise(resolve => |