소스 검색

meant to do it like this

Sv443 4 년 전
부모
커밋
4a1b32f52d
1개의 변경된 파일8개의 추가작업 그리고 6개의 파일을 삭제
  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() {