nodebb-plugin-ezoic-infinite 1.4.43 → 1.4.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/public/client.js +10 -0
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -338,6 +338,7 @@
|
|
|
338
338
|
|
|
339
339
|
state.lastShowById.set(id, Date.now());
|
|
340
340
|
window.ezstandalone.showAds(id);
|
|
341
|
+
sessionDefinedIds.add(id);
|
|
341
342
|
return true;
|
|
342
343
|
}
|
|
343
344
|
} catch (e) {}
|
|
@@ -359,10 +360,18 @@
|
|
|
359
360
|
// Ezoic refuse les placeholders invisibles (offsetHeight = 0)
|
|
360
361
|
if (el.offsetHeight === 0 && attempts < 100) {
|
|
361
362
|
// Pas encore visible, réessayer
|
|
363
|
+
if (attempts % 10 === 0) {
|
|
364
|
+
console.log('[OFFSET] ID', id, 'invisible après', attempts, 'tentatives, height:', el.offsetHeight, 'display:', window.getComputedStyle(el).display);
|
|
365
|
+
}
|
|
362
366
|
const timeoutId = setTimeout(waitForPh, 50);
|
|
363
367
|
state.activeTimeouts.add(timeoutId);
|
|
364
368
|
return;
|
|
365
369
|
}
|
|
370
|
+
|
|
371
|
+
// Si on arrive ici, soit visible, soit timeout
|
|
372
|
+
if (el.offsetHeight === 0) {
|
|
373
|
+
console.log('[OFFSET] ID', id, 'TIMEOUT après', attempts, 'tentatives - height:', el.offsetHeight, 'display:', window.getComputedStyle(el).display, 'parent:', el.parentElement?.tagName);
|
|
374
|
+
}
|
|
366
375
|
|
|
367
376
|
// Double-check pageKey juste avant doCall (au cas où cleanup appelé entre-temps)
|
|
368
377
|
if (state.pageKey !== startPageKey) {
|
|
@@ -387,6 +396,7 @@
|
|
|
387
396
|
state.pendingById.delete(id);
|
|
388
397
|
state.lastShowById.set(id, Date.now());
|
|
389
398
|
window.ezstandalone.showAds(id);
|
|
399
|
+
sessionDefinedIds.add(id);
|
|
390
400
|
}
|
|
391
401
|
} catch (e) {}
|
|
392
402
|
});
|