1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix state persistence

This commit is contained in:
frankiebee 2017-03-23 15:12:39 -07:00
parent 4451593867
commit c8540261c1

View File

@ -142,7 +142,7 @@ function setupController (initState, client) {
// diskStore
// )
controller.store.subscribe((state) => {
dbController.put(versionifyData(controller.store))
dbController.put(versionifyData(state))
.catch((err) => {console.error(err)})
})
function versionifyData(state) {