nodebb-plugin-ezoic-infinite 1.4.48 → 1.4.49

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 +2 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.4.48",
3
+ "version": "1.4.49",
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
@@ -26,11 +26,6 @@
26
26
  usedPosts: new Set(),
27
27
  usedCategories: new Set(),
28
28
 
29
- // wrappers currently on page (FIFO for recycling)
30
- liveBetween: [],
31
- liveMessage: [],
32
- liveCategory: [],
33
-
34
29
  lastShowById: new Map(),
35
30
  pendingById: new Set(),
36
31
  definedIds: new Set(),
@@ -570,10 +565,6 @@
570
565
  state.usedTopics.clear();
571
566
  state.usedPosts.clear();
572
567
  state.usedCategories.clear();
573
- state.liveBetween = [];
574
- state.liveMessage = [];
575
- state.liveCategory = [];
576
-
577
568
  state.lastShowById.clear();
578
569
  // CRITIQUE: Vider pendingById pour annuler tous les showAds en cours
579
570
  // Sinon Ezoic essaie d'accéder aux placeholders pendant que NodeBB vide le DOM
@@ -732,8 +723,8 @@
732
723
  }
733
724
 
734
725
  function bindScroll() {
735
- if (state.__scrollBound) return;
736
- state.__scrollBound = true;
726
+ if (state.lastScrollRun > 0) return;
727
+ state.lastScrollRun = Date.now();
737
728
  let ticking = false;
738
729
  window.addEventListener('scroll', () => {
739
730
  if (ticking) return;