Browse Source

fix: disabled nightmode by default and fixed issue with it

Kristian Vos 5 years ago
parent
commit
091c1c0deb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      frontend/App.vue

+ 2 - 1
frontend/App.vue

@@ -51,7 +51,8 @@ export default {
 		...mapActions("modals", ["closeCurrentModal"])
 	},
 	beforeMount() {
-		const nightmode = true || localStorage.getItem("nightmode");
+		const nightmode =
+			false || JSON.parse(localStorage.getItem("nightmode"));
 		if (nightmode) {
 			document
 				.getElementsByTagName("body")[0]