nodebb-plugin-ezoic-infinite 1.4.26 → 1.4.27

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 +4 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.26",
3
+ "version": "1.4.27",
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
@@ -648,16 +648,11 @@
648
648
  state.pageKey = getPageKey();
649
649
  ensureObserver();
650
650
 
651
- // Attendre que NodeBB ait fini de construire le DOM
652
- // (ajaxify.end se déclenche avant que le contenu soit vraiment prêt)
651
+ // Attendre que le DOM soit construit par NodeBB
653
652
  setTimeout(() => {
654
- scheduleRun();
655
- }, 800);
656
-
657
- // Second pass pour être sûr
658
- setTimeout(() => {
659
- scheduleRun();
660
- }, 1500);
653
+ // Puis attendre que Ezoic soit prêt (comme au chargement initial)
654
+ waitForEzoicThenRun();
655
+ }, 500);
661
656
  });
662
657
 
663
658
  $(window).on('action:category.loaded.ezoicInfinite', () => {