Implemented a workspace feature

This commit is contained in:
Alicia Sykes
2021-06-17 22:59:56 +01:00
parent f5ecdb4459
commit 3a22283f3c
8 changed files with 171 additions and 21 deletions

View File

@@ -54,6 +54,7 @@ export default {
}
},
methods: {
/* Sets the theme, by updating data-theme attribute on the html tag */
setLocalTheme(newTheme) {
const htmlTag = document.getElementsByTagName('html')[0];
if (htmlTag.hasAttribute('data-theme')) htmlTag.removeAttribute('data-theme');