nodebb-plugin-ezoic-infinite 1.4.31 → 1.4.32

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 +3 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.31",
3
+ "version": "1.4.32",
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
@@ -651,16 +651,11 @@
651
651
  $(window).on('action:ajaxify.start.ezoicInfinite', () => cleanup());
652
652
 
653
653
  $(window).on('action:ajaxify.end.ezoicInfinite', () => {
654
- console.log('[AJAXIFY] ajaxify.end - pageKey:', getPageKey());
654
+ console.log('[AJAXIFY] ajaxify.end - juste update pageKey');
655
655
  state.pageKey = getPageKey();
656
656
  ensureObserver();
657
-
658
- // Attendre que le DOM soit construit par NodeBB
659
- setTimeout(() => {
660
- console.log('[AJAXIFY] Après 500ms, appel waitForEzoicThenRun');
661
- // Puis attendre que Ezoic soit prêt (comme au chargement initial)
662
- waitForEzoicThenRun();
663
- }, 500);
657
+ // NE RIEN FAIRE d'autre ici
658
+ // Les hooks category.loaded/topics.loaded/etc. vont déclencher scheduleRun
664
659
  });
665
660
 
666
661
  $(window).on('action:category.loaded.ezoicInfinite', () => {