Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/prefs.js

Issue 5999015493632000: Issue 2541 - Suppress error on Opera when calling chrome.storage.managed.get() (Closed)
Patch Set: Created May 18, 2015, 4:51 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/prefs.js
===================================================================
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -283,6 +283,9 @@
{
chrome.storage.managed.get(null, function(items)
{
+ // Shut up Opera ;P
Thomas Greiner 2015/05/19 09:47:39 I literally had to LOL when I read this. :D Still
Sebastian Noack 2015/05/19 16:09:01 I found it quite descriptive, as making Opera shut
Thomas Greiner 2015/05/19 16:39:53 Thanks a lot!
+ chrome.runtime.lastError;
+
for (let key in items)
defaults[key] = items[key];
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld