debug
This commit is contained in:
@@ -97,9 +97,17 @@ function openLink(url) {
|
||||
|
||||
// 随机展示广告
|
||||
function showRandomPopup() {
|
||||
|
||||
// 如果当前域名是 zhaoshiping.com,则不展示广告
|
||||
if (location.hostname === "zhaoshiping.com") {
|
||||
return;
|
||||
}
|
||||
|
||||
// 如果当前域名是这个域名,zhaoshiping.com ,则不展示广告
|
||||
if (!checkPopupLimit()) {
|
||||
return; // 超过3次限制,不显示
|
||||
}
|
||||
|
||||
const randomIndex = Math.floor(Math.random() * popupData.length);
|
||||
createPopup(popupData[randomIndex]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user