state: store quickstate in client localStorage

This commit is contained in:
bordun 2020-03-24 11:47:10 +01:00
parent c3d3842840
commit 7c580b90e7
2 changed files with 6 additions and 1 deletions

View file

@ -15,7 +15,7 @@ var StateManager = class StateManager {
this.statePath = ''
this.lastDir = null
this.quickState = null
this.quickState = JSON.parse(localStorage.getItem('osc.state.quickState')) || null
this.valueStateQueue = {}
this.valueOldPropQueue = {}
@ -182,6 +182,7 @@ var StateManager = class StateManager {
quickSave() {
this.quickState = deepCopy(this.get())
localStorage.setItem('osc.state.quickState', JSON.stringify(this.quickState))
}