Skip to content

Commit

Permalink
FIX key-cache destroys updates on multiWindow
Browse files Browse the repository at this point in the history
  • Loading branch information
pubkey authored and nolanlawson committed Dec 11, 2016
1 parent 49967ac commit 8ac3092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/localstorage.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ LocalStorage.prototype.init = function (callback) {
LocalStorage.prototype.keys = function (callback) {
var self = this;
self.sequentialize(callback, function (callback) {
callback(null, self._keys.slice());
self._store.getKeys(function (err, keys) {
callback(null, keys.slice());
});
});
};

Expand Down

0 comments on commit 8ac3092

Please sign in to comment.