Store can optionally (per key) read/load from local storage tested with appTheme

This commit is contained in:
Julian Stirling 2025-11-02 12:07:24 +00:00
parent d4e9d4c348
commit e9eec20027
2 changed files with 54 additions and 11 deletions

View file

@ -38,17 +38,6 @@ export default {
},
},
watch: {
appTheme: function() {
this.setLocalStorageObj("appTheme", this.appTheme);
},
},
mounted() {
// Try loading settings from localStorage. If null, don't change.
this.appTheme = this.getLocalStorageObj("appTheme") || this.appTheme;
},
methods: {
async toggleFullscreen() {
if (!document.fullscreenElement) {