summaryrefslogtreecommitdiff
path: root/src/App.vue
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-10-03 10:06:25 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-10-03 10:06:25 +0300
commit4b82c283c2e9ce4f3a6c2d684b755aa56e61b3fb (patch)
treefe2f95d3d5a79cd22231ca34024bcd5a905d6848 /src/App.vue
parent8be836b8d2f9aaf4ad090aab44c26dee8b649447 (diff)
downloadwebui-vue-4b82c283c2e9ce4f3a6c2d684b755aa56e61b3fb.tar.xz
fix validation, theme
Diffstat (limited to 'src/App.vue')
-rw-r--r--src/App.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/App.vue b/src/App.vue
index d2878946..107e9483 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -27,6 +27,11 @@ export default {
},
created() {
document.title = this.$route.meta.title || 'Page is missing title';
+ const theme = localStorage.getItem('light-theme');
+ if (theme === null) {
+ localStorage.setItem('user-theme', 'light-theme');
+ document.documentElement.className = 'light-theme';
+ }
},
};
</script>