fix serialization bug
This commit is contained in:
1 parent
caf1a6f01c
commit
a6fd285642
1 file changed
+1
-1
@@ -19,7 +19,7 @@ define(function () {
|
||||
// implement in alternative store
|
||||
Store.setBatch = function (map, cb) {
|
||||
Object.keys(map).forEach(function (key) {
|
||||
localStorage.setItem(key, map[key]);
|
||||
localStorage.setItem(key, JSON.stringify(map[key]));
|
||||
});
|
||||
cb(void 0, map);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user