Bladeren bron

meant to do it like this

Sv443 4 jaren geleden
bovenliggende
commit
4a1b32f52d
1 gewijzigde bestanden met toevoegingen van 8 en 6 verwijderingen
  1. 8 6
      js/index.js

+ 8 - 6
js/index.js

@@ -50,12 +50,14 @@ function otheronload() {
     //     if (!Cookies.get("theme_pref")) {
     //         setCookie("theme_pref", "light", 7);
     //         theme.select("light");
-    //     } else if (Cookies.get("theme_pref") == "dark")
-    //         theme.select("dark");
-    //     else {
-    //         theme.select("light");
-    //     }
-    // }
+    //     } else 
+    if(Cookies.get("theme_pref") == "dark")
+    {
+        theme.select("dark");
+    }
+    else {
+        theme.select("light");
+    }
 }
 
 function indexonload() {