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

Unified Diff: lib/prefs.js

Issue 29339112: Issue 3716 - Split up files stored in storage.local (Closed)
Patch Set: Make sure we don't leak chunks. Edit comments. Simplify safari storage. Created March 31, 2016, 6:33 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 | « lib/io.js ('k') | safari/ext/background.js » ('j') | safari/ext/background.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/prefs.js
===================================================================
--- a/lib/prefs.js
+++ b/lib/prefs.js
@@ -213,7 +213,10 @@
else
{
overrides[pref] = value;
- ext.storage.set(prefToKey(pref), value);
+
+ let items = {};
+ items[prefToKey(pref)] = value;
+ ext.storage.set(items);
}
},
enumerable: true
« no previous file with comments | « lib/io.js ('k') | safari/ext/background.js » ('j') | safari/ext/background.js » ('J')

Powered by Google App Engine
This is Rietveld