nodebb-plugin-ezoic-infinite 1.4.85 → 1.4.86

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 +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.85",
3
+ "version": "1.4.86",
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
@@ -721,6 +721,12 @@
721
721
  }
722
722
 
723
723
  async function runCore() {
724
+ // CRITIQUE: Ne rien insérer si navigation en cours
725
+ if (EZOIC_BLOCKED) {
726
+ console.log('[NODEBB-EZOIC] runCore bloqué - navigation en cours');
727
+ return;
728
+ }
729
+
724
730
  if (!state.canShowAds) {
725
731
  return;
726
732
  }
@@ -816,6 +822,10 @@
816
822
  ensureObserver();
817
823
 
818
824
  state.canShowAds = true;
825
+
826
+ // CRITIQUE: Relancer insertion maintenant que navigation est terminée
827
+ console.log('[NODEBB-EZOIC] Relancer insertion pubs');
828
+ scheduleRun();
819
829
  });
820
830
 
821
831
  $(window).on('action:category.loaded.ezoicInfinite', () => {