Added auto-open object and also some fixes for vuex store issues revealed when adding this feature

This commit is contained in:
2020-05-15 19:38:27 +00:00
parent c866ad684f
commit 49a0ee4c78
6 changed files with 39 additions and 20 deletions

View File

@@ -7,8 +7,17 @@ const MaxLogLength = 100;
Vue.use(Vuex);
//reset all local settings via url in case of fucked up situation
if (window.location.search) {
var searchParams = new URLSearchParams(window.location.search);
if (searchParams.has("reset")) {
localStorage.removeItem("AyaNova");
console.log("RESET LOCAL SETTINGS");
}
}
export default new Vuex.Store({
plugins: [createPersistedState()],
plugins: [createPersistedState({ key: "AyaNova" })],
state: {
openObject: null,
lastClientVersion: "",