diff options
author | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-10-03 10:06:25 +0300 |
---|---|---|
committer | Maksim Zakharov <m.zakharov@IBS.RU> | 2022-10-03 10:06:25 +0300 |
commit | 4b82c283c2e9ce4f3a6c2d684b755aa56e61b3fb (patch) | |
tree | fe2f95d3d5a79cd22231ca34024bcd5a905d6848 /src/App.vue | |
parent | 8be836b8d2f9aaf4ad090aab44c26dee8b649447 (diff) | |
download | webui-vue-4b82c283c2e9ce4f3a6c2d684b755aa56e61b3fb.tar.xz |
fix validation, theme
Diffstat (limited to 'src/App.vue')
-rw-r--r-- | src/App.vue | 5 |
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> |