浏览代码

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() {