diff options
author | frankiebee <frankie.diamond@gmail.com> | 2017-03-24 06:12:39 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2017-03-24 06:12:39 +0800 |
commit | c8540261c1c9b60c98845bdd19095efc064fdde8 (patch) | |
tree | 88dec0a6f99325250adad14293fc83478667f79b | |
parent | 445159386798579f3ed449b8bc4efa00f52a26ac (diff) | |
download | tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.tar tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.tar.gz tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.tar.bz2 tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.tar.lz tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.tar.xz tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.tar.zst tangerine-wallet-browser-c8540261c1c9b60c98845bdd19095efc064fdde8.zip |
Fix state persistence
-rw-r--r-- | library/sw-core.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/sw-core.js b/library/sw-core.js index 3972e361b..8c7de2c32 100644 --- a/library/sw-core.js +++ b/library/sw-core.js @@ -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) { |