Skip to content

Commit 916d6cd

Browse files
committed
fixed (now i really really go)
1 parent f8de842 commit 916d6cd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

static/assets/scripts/home.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ try {
325325
}
326326
log("Home page loaded");
327327
window.ccPorted.baseRendering = false;
328-
loadAds();
328+
setTimeout(loadAds, 1000);
329329
}
330330
async function incrementClicks(gameID) {
331331
try {
@@ -824,7 +824,8 @@ try {
824824
};
825825
needToLoadAds = false;
826826
for (let i = 0; i < num; i++) {
827-
const adID = `mmt-ad-${Math.random().toString(16).slice(2)}-${num}`;
827+
console.log("loading ad ", i)
828+
const adID = `mmt-ad-${Math.random().toString(16).slice(2)}-${i}`;
828829
const adHTML = `<div id="${adID}"></div>`;
829830
const adCard = document.createElement("div");
830831
adCard.classList.add("inxxx");
@@ -839,7 +840,8 @@ try {
839840
$MMT = window.$MMT || {};
840841
$MMT.cmd = $MMT.cmd || [];
841842
$MMT.cmd.push(function () {
842-
$MMT.display.slots.push(adID);
843+
console.log(adID.slice(4))
844+
$MMT.display.slots.push([adID.slice(4)]);
843845
});
844846
}
845847
}

0 commit comments

Comments
 (0)