diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-09-27 21:28:52 +0200 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-09-27 21:28:52 +0200 |
commit | 0061e86084beb5ffd6acfad926d44dd49a00664a (patch) | |
tree | 2a7c126286ebf910a122b4b07cd45174cdc1e20d /layouts | |
parent | 6395d1ec4362fedd7854fc9a103bad8bf7ae5d3d (diff) |
Fix theme switch
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/default.vue | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/layouts/default.vue b/layouts/default.vue index c6e249f..b6da206 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -6,19 +6,3 @@ </main> </div> </template> - -<script> -export default { - created() { - setTimeout(() => { - const dark = document.querySelector("#__layout .dark"); - console.log(dark); - if (dark) { - document.querySelector("body").className = "dark"; - } else { - document.querySelector("body").className = ""; - } - }, 1000); - }, -}; -</script> |