nodebb-plugin-ezoic-infinite 1.7.79 → 1.7.80
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 +6 -1
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -446,7 +446,12 @@
|
|
|
446
446
|
S.lastShow.set(id, t);
|
|
447
447
|
try { ph.closest?.(`.${WRAP_CLASS}`)?.classList.remove('is-empty'); } catch (_) {}
|
|
448
448
|
ezCmd(ez => {
|
|
449
|
-
|
|
449
|
+
// displayMore = API Ezoic documentée pour l'infinite scroll
|
|
450
|
+
// Évite le passage en 'unused' que showAds cause sur les slots dynamiques
|
|
451
|
+
try {
|
|
452
|
+
if (typeof ez.displayMore === 'function') ez.displayMore([id]);
|
|
453
|
+
else ez.showAds(id);
|
|
454
|
+
} catch (_) { try { ez.showAds(id); } catch (_) {} }
|
|
450
455
|
scheduleEmptyCheck(id);
|
|
451
456
|
setTimeout(() => { clearTimeout(timer); release(); }, 700);
|
|
452
457
|
});
|