Commiting in order to switch computers

This commit is contained in:
Alicia Sykes
2021-06-17 13:34:02 +01:00
parent 491c07ed67
commit c92083f88f
7 changed files with 118 additions and 29 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');