Skip to content

Commit 91b83fa

Browse files
authored
调整免责声明显示方式 (#1265)
Signed-off-by: Anna Beiyan <[email protected]>
1 parent a4ba910 commit 91b83fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

themes/mtfwiki-modified/assets/cookies-eu-banner.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ window.document.addEventListener("DOMContentLoaded", function () {
295295
button1 = "免責聲明";
296296
button2 = "知道了";
297297
}
298-
if (contentText != null) {
298+
if (contentText != null && window.location.pathname !== "/zh-cn/about/disclaimer/") {
299299
banner.innerHTML = `
300300
${contentText}
301301
<a href="/zh-cn/about/disclaimer/" id="cookies-eu-more">${button1}</a>

0 commit comments

Comments
 (0)