diff --git a/web/preferences.js b/web/preferences.js index 92f0dc648..88feabce2 100644 --- a/web/preferences.js +++ b/web/preferences.js @@ -204,11 +204,15 @@ var Preferences = { // // These preferences can be overridden by the user. // chrome.storage.managed.get(DEFAULT_PREFERENCES, getPreferences); // } else { -// // Managed storage not supported, e.g. in Opera. +// // Managed storage not supported, e.g. in old Chromium versions. // getPreferences(DEFAULT_PREFERENCES); // } // // function getPreferences(defaultPrefs) { +// if (chrome.runtime.lastError) { +// // Managed storage not supported, e.g. in Opera. +// defaultPrefs = DEFAULT_PREFERENCES; +// } // chrome.storage.local.get(defaultPrefs, function(readPrefs) { // resolve(readPrefs); // });