From c8540261c1c9b60c98845bdd19095efc064fdde8 Mon Sep 17 00:00:00 2001 From: frankiebee Date: Thu, 23 Mar 2017 15:12:39 -0700 Subject: [PATCH] Fix state persistence --- library/sw-core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {