Fall back to localStorage when indexeddb is unavailable

This commit is contained in:
Dannon Baker
2022-02-14 23:20:56 -05:00
parent 9ca28b29bb
commit f7e6061903
+6 -6
View File
@@ -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,