aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/App.vue5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/App.vue b/src/App.vue
index 32ab3f8..7576278 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -748,8 +748,9 @@ export default defineComponent({
}
}
for (let prop of Object.getOwnPropertyNames(uiOpts) as (keyof UiOptions)[]){
- let item = localStorage.getItem(lytOptPrefix + prop);
- if (item == null && this.uiOpts[prop] != uiOpts[prop]){
+ let item = localStorage.getItem(uiOptPrefix + prop);
+ //Not: Using JSON.stringify here to roughly deep-compare values
+ if (item == null && JSON.stringify(this.uiOpts[prop]) != JSON.stringify(uiOpts[prop])){
this.uiOpts[prop] = uiOpts[prop];
if (prop == 'useReducedTree'){
changedTree = true;