Fix state persistence

feature/default_network_editable
frankiebee 8 years ago
parent 4451593867
commit c8540261c1
  1. 2
      library/sw-core.js

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

Loading…
Cancel
Save