summaryrefslogtreecommitdiff
path: root/layouts/default.vue
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2022-09-27 21:28:52 +0200
committerSanto Cariotti <santo@dcariotti.me>2022-09-27 21:28:52 +0200
commit0061e86084beb5ffd6acfad926d44dd49a00664a (patch)
tree2a7c126286ebf910a122b4b07cd45174cdc1e20d /layouts/default.vue
parent6395d1ec4362fedd7854fc9a103bad8bf7ae5d3d (diff)
Fix theme switch
Diffstat (limited to 'layouts/default.vue')
-rw-r--r--layouts/default.vue16
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>