fixup cd6bcc65: read BG.localStorage dummy properly

This commit is contained in:
tophf 2017-09-03 19:55:32 +03:00
parent d60aea9333
commit 7a50387d35

View File

@ -183,7 +183,8 @@ var prefs = new function Prefs() {
break;
}
} else if (FIREFOX_NO_DOM_STORAGE && BG) {
value = BG.localStorage[key] || defaultValue;
value = BG.localStorage[key];
value = value === undefined ? defaultValue : value;
} else {
value = defaultValue;
}