nodebb-plugin-ezoic-infinite 1.4.15 → 1.4.16

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/public/client.js +0 -28
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.15",
3
+ "version": "1.4.16",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",
package/public/client.js CHANGED
@@ -680,34 +680,6 @@
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) {
689
- if (typeof window.ezstandalone.defineSlots === 'function') {
690
- window.ezstandalone.defineSlots();
691
- } else if (typeof window.ezstandalone.refresh === 'function') {
692
- // Fallback : refresh() via cmd queue pour éviter l'erreur "cannot call refresh"
693
- window.ezstandalone.cmd = window.ezstandalone.cmd || [];
694
- window.ezstandalone.cmd.push(() => {
695
- try {
696
- if (typeof window.ezstandalone.refresh === 'function') {
697
- window.ezstandalone.refresh();
698
- }
699
- } catch (e) {}
700
- });
701
- } else {
702
- // Aucune méthode de refresh disponible - Ezoic ne recalculera pas le contenu
703
- console.warn('[Ezoic Plugin] Neither defineSlots nor refresh available - ads may not load on scroll');
704
- }
705
- }
706
- } catch (e) {
707
- console.error('[Ezoic Plugin] Error calling Ezoic refresh:', e);
708
- }
709
- }
710
-
711
683
  scheduleRefill(250);
712
684
 
713
685
  // If nothing inserted and list isn't in DOM yet (first click), retry a bit