nodebb-plugin-ezoic-infinite 1.4.12 → 1.4.14
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 +14 -0
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -680,6 +680,20 @@
|
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
enforceNoAdjacentAds();
|
|
683
|
+
|
|
684
|
+
// Forcer Ezoic à re-scanner les placeholders et recalculer le contenu
|
|
685
|
+
// après insertion de nouveaux wrappers (nécessaire pour infinite scroll)
|
|
686
|
+
if (inserted > 0) {
|
|
687
|
+
try {
|
|
688
|
+
if (window.ezstandalone && typeof window.ezstandalone.defineSlots === 'function') {
|
|
689
|
+
// defineSlots() force un re-scan sans l'erreur "cannot call refresh"
|
|
690
|
+
window.ezstandalone.defineSlots();
|
|
691
|
+
}
|
|
692
|
+
} catch (e) {
|
|
693
|
+
// Fallback silencieux si defineSlots n'existe pas
|
|
694
|
+
}
|
|
695
|
+
}
|
|
696
|
+
|
|
683
697
|
scheduleRefill(250);
|
|
684
698
|
|
|
685
699
|
// If nothing inserted and list isn't in DOM yet (first click), retry a bit
|