Index: lib/prefs.js |
=================================================================== |
--- a/lib/prefs.js |
+++ b/lib/prefs.js |
@@ -283,6 +283,12 @@ |
{ |
chrome.storage.managed.get(null, function(items) |
{ |
+ // Opera doesn't support chrome.storage.managed, but instead simply |
+ // removing the API, Opera sets chrome.runtime.lastError when using it. |
+ // So we have to retrieve that error, to prevent it from showing up |
+ // in the console. |
+ chrome.runtime.lastError; |
+ |
for (let key in items) |
defaults[key] = items[key]; |