mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 19:35:50 +00:00
fix: 判断广告页逻辑错误
This commit is contained in:
parent
64906a827d
commit
d6a7c19cbf
2
public/site/js/ad.js
vendored
2
public/site/js/ad.js
vendored
@ -7,7 +7,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||||||
// 获取当前页面路径
|
// 获取当前页面路径
|
||||||
const currentPath = window.location.pathname;
|
const currentPath = window.location.pathname;
|
||||||
// 判断是否为广告页面
|
// 判断是否为广告页面
|
||||||
const isAdPage = currentPath.includes("ad.html");
|
const isAdPage = currentPath.endsWith("/ad.html");
|
||||||
|
|
||||||
// 获取URL对象
|
// 获取URL对象
|
||||||
const url = new URL(window.location.href);
|
const url = new URL(window.location.href);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user