From 0061e86084beb5ffd6acfad926d44dd49a00664a Mon Sep 17 00:00:00 2001
From: Santo Cariotti <santo@dcariotti.me>
Date: Tue, 27 Sep 2022 21:28:52 +0200
Subject: Fix theme switch

---
 layouts/default.vue | 16 ----------------
 1 file changed, 16 deletions(-)

(limited to 'layouts/default.vue')

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>
-- 
cgit v1.2.3-71-g8e6c

