From d6a7c19cbf8302208325e5e45541b904d8920e76 Mon Sep 17 00:00:00 2001 From: gwok Date: Mon, 28 Oct 2024 21:13:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A4=E6=96=AD=E5=B9=BF=E5=91=8A?= =?UTF-8?q?=E9=A1=B5=E9=80=BB=E8=BE=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/site/js/ad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/site/js/ad.js b/public/site/js/ad.js index 7fee3513b..e607ab1f7 100644 --- a/public/site/js/ad.js +++ b/public/site/js/ad.js @@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", function () { // 获取当前页面路径 const currentPath = window.location.pathname; // 判断是否为广告页面 - const isAdPage = currentPath.includes("ad.html"); + const isAdPage = currentPath.endsWith("/ad.html"); // 获取URL对象 const url = new URL(window.location.href);