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: Remove setMultiple. Use suggested code. Created March 31, 2016, 9:51 a.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
« lib/io.js ('K') | « lib/io.js ('k') | 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
@@ -213,7 +213,10 @@
else
{
overrides[pref] = value;
- ext.storage.set(prefToKey(pref), value);
+
+ let storageItems = {};
Sebastian Noack 2016/03/31 12:36:54 Nit: Just call this variable items for consistence
+ storageItems[prefToKey(pref)] = value;
+ ext.storage.set(storageItems);
}
},
enumerable: true
« lib/io.js ('K') | « lib/io.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld