nodebb-plugin-ezoic-infinite 1.4.48 → 1.4.50
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.
- package/package.json +1 -1
- package/public/client.js +3 -11
package/package.json
CHANGED
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(),
|
|
@@ -558,6 +553,7 @@
|
|
|
558
553
|
}
|
|
559
554
|
|
|
560
555
|
function cleanup() {
|
|
556
|
+
console.log('[CLEANUP] Called - navigation started');
|
|
561
557
|
destroyUsedPlaceholders();
|
|
562
558
|
|
|
563
559
|
state.pageKey = getPageKey();
|
|
@@ -570,10 +566,6 @@
|
|
|
570
566
|
state.usedTopics.clear();
|
|
571
567
|
state.usedPosts.clear();
|
|
572
568
|
state.usedCategories.clear();
|
|
573
|
-
state.liveBetween = [];
|
|
574
|
-
state.liveMessage = [];
|
|
575
|
-
state.liveCategory = [];
|
|
576
|
-
|
|
577
569
|
state.lastShowById.clear();
|
|
578
570
|
// CRITIQUE: Vider pendingById pour annuler tous les showAds en cours
|
|
579
571
|
// Sinon Ezoic essaie d'accéder aux placeholders pendant que NodeBB vide le DOM
|
|
@@ -732,8 +724,8 @@
|
|
|
732
724
|
}
|
|
733
725
|
|
|
734
726
|
function bindScroll() {
|
|
735
|
-
if (state.
|
|
736
|
-
state.
|
|
727
|
+
if (state.lastScrollRun > 0) return;
|
|
728
|
+
state.lastScrollRun = Date.now();
|
|
737
729
|
let ticking = false;
|
|
738
730
|
window.addEventListener('scroll', () => {
|
|
739
731
|
if (ticking) return;
|