From 7a50387d35cfaefbe7800dd74c1a5906986f3990 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 3 Sep 2017 19:55:32 +0300 Subject: [PATCH] fixup cd6bcc65: read BG.localStorage dummy properly --- js/prefs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/prefs.js b/js/prefs.js index 0453314a..7f54c556 100644 --- a/js/prefs.js +++ b/js/prefs.js @@ -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; }