Store can optionally (per key) read/load from local storage tested with appTheme
This commit is contained in:
parent
d4e9d4c348
commit
e9eec20027
2 changed files with 54 additions and 11 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue