From 00c3c6efa78c9b99522015e8f014281e17353027 Mon Sep 17 00:00:00 2001 From: iulo Date: Sat, 9 Apr 2022 23:54:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BC=BA=E5=88=B6=E8=AE=BE=E7=BD=AElang?= =?UTF-8?q?=E5=AF=BC=E8=87=B4giscus404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/custom.js b/assets/custom.js index 8ac21e18..59d19a51 100644 --- a/assets/custom.js +++ b/assets/custom.js @@ -122,7 +122,7 @@ var initAll = function () { document.getElementById("giscus-container").appendChild(divider); // 选取浏览器默认使用的语言 - const lang = navigator.language || navigator.userLanguage + // const lang = navigator.language || navigator.userLanguage // 若当前 mdbook 主题为 Light 或 Rust ,则将 giscuz 主题设置为 light var theme = "transparent_dark"; @@ -146,7 +146,7 @@ var initAll = function () { script.setAttribute("data-emit-metadata", "0"); script.setAttribute("data-input-position", "top"); script.setAttribute("data-theme", theme); - script.setAttribute("data-lang", lang); + // script.setAttribute("data-lang", lang); // 预先加载评论会更好,这样用户读到那边时,评论就加载好了 // script.setAttribute("data-loading", "lazy"); document.getElementById("giscus-container").appendChild(script);