Added auto-open object and also some fixes for vuex store issues revealed when adding this feature
This commit is contained in:
@@ -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: "",
|
||||
|
||||
Reference in New Issue
Block a user