From f7e6061903f15165b42c241db964f299e60eef06 Mon Sep 17 00:00:00 2001 From: Dannon Baker Date: Mon, 14 Feb 2022 22:41:40 -0500 Subject: [PATCH] Fall back to localStorage when indexeddb is unavailable --- client/src/store/index.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/store/index.js b/client/src/store/index.js index adbf246e49a..734d60ffb22 100644 --- a/client/src/store/index.js +++ b/client/src/store/index.js @@ -36,13 +36,13 @@ import { syncVuextoGalaxy } from "./syncVuextoGalaxy"; Vue.use(Vuex); -const galaxyStorage = localForage.createInstance({}) +const galaxyStorage = localForage.createInstance({}); galaxyStorage.config({ - driver : localForage.INDEXEDDB, - name : 'galaxyIndexedDB', - version : 1.0, - storeName : 'galaxyStore', -}) + driver: [localForage.INDEXEDDB, localForage.LOCALSTORAGE], + name: "galaxyIndexedDB", + version: 1.0, + storeName: "galaxyStore", +}); const panelsPersistence = new VuexPersistence({ storage: galaxyStorage,