소스 검색

not setting cookies on redirect sites anymore

Sv443 4 년 전
부모
커밋
511df54dea
1개의 변경된 파일10개의 추가작업 그리고 10개의 파일을 삭제
  1. 10 10
      js/index.js

+ 10 - 10
js/index.js

@@ -46,16 +46,16 @@ let langValues = {
 };
 
 function otheronload() {
-    if (Cookies.get("cookie-consent") == "true") {
-        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");
-        }
-    }
+    // if (Cookies.get("cookie-consent") == "true") {
+    //     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");
+    //     }
+    // }
 }
 
 function indexonload() {