diff --git a/web/firefoxcom.js b/web/firefoxcom.js index 6d5401fc4..8673a3fd0 100644 --- a/web/firefoxcom.js +++ b/web/firefoxcom.js @@ -175,8 +175,8 @@ class DownloadManager { class FirefoxPreferences extends BasePreferences { async _readFromStorage(prefObj) { - const prefStr = await FirefoxCom.requestAsync("getPreferences", prefObj); - return JSON.parse(prefStr); + const prefs = await FirefoxCom.requestAsync("getPreferences", prefObj); + return typeof prefs === "string" ? JSON.parse(prefs) : prefs; } }