Skip to content

Commit

Permalink
When loading, set the localStorage too
Browse files Browse the repository at this point in the history
  • Loading branch information
f-osorio committed Dec 4, 2024
1 parent a1e7ca1 commit 54601e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/panels/nav/Nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,14 @@
var contents = JSON.parse(e.target.result)
that.preferenceStore.loadPreferences(contents["prefs"])
window.localStorage.setItem('marva-preferences', JSON.stringify(contents["prefs"]))
if (contents["scriptShifterOptions"]){
that.preferenceStore.scriptShifterOptions = contents["scriptShifterOptions"]
window.localStorage.setItem('marva-scriptShifterOptions', JSON.stringify(contents["scriptShifterOptions"]))
}
if (contents["diacriticUse"]){
that.preferenceStore.diacriticUse = contents["diacriticUse"]
window.localStorage.setItem('marva-diacriticUse', JSON.stringify(contents["diacriticUse"]))
}
that.preferenceStore.buildDiacriticSettings()
}
Expand Down

0 comments on commit 54601e7

Please sign in to comment.