mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
commit
2ab34760b0
@ -119,7 +119,6 @@ function remoteStoreWithLocalStorageCache (storageKey) {
|
|||||||
var store = new RemoteStore(initState)
|
var store = new RemoteStore(initState)
|
||||||
// cache the latest state locally
|
// cache the latest state locally
|
||||||
store.subscribe(function (state) {
|
store.subscribe(function (state) {
|
||||||
console.log('received state update %s of %s', storageKey, state)
|
|
||||||
localStorage[storageKey] = JSON.stringify(state)
|
localStorage[storageKey] = JSON.stringify(state)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user