Skip to content

Commit

Permalink
调整免责声明显示方式 (#1265)
Browse files Browse the repository at this point in the history
Signed-off-by: Anna Beiyan <[email protected]>
  • Loading branch information
AnnaBeiyan authored Dec 21, 2024
1 parent a4ba910 commit 91b83fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion themes/mtfwiki-modified/assets/cookies-eu-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ window.document.addEventListener("DOMContentLoaded", function () {
button1 = "免責聲明";
button2 = "知道了";
}
if (contentText != null) {
if (contentText != null && window.location.pathname !== "/zh-cn/about/disclaimer/") {
banner.innerHTML = `
${contentText}
<a href="/zh-cn/about/disclaimer/" id="cookies-eu-more">${button1}</a>
Expand Down

0 comments on commit 91b83fa

Please sign in to comment.