nodebb-plugin-ezoic-infinite 1.7.51 → 1.7.52

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 +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.7.51",
3
+ "version": "1.7.52",
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
@@ -1,5 +1,5 @@
1
1
  /**
2
- * NodeBB Ezoic Infinite Ads — client.js v57
2
+ * NodeBB Ezoic Infinite Ads — client.js v58
3
3
  *
4
4
  * Historique
5
5
  * ──────────
@@ -18,6 +18,10 @@
18
18
  * v53 S.recycling garde double-recyclage. pickId early-exit. cleanup complet.
19
19
  * v54 ensureTcfLocator rappelé à chaque ajaxify.end.
20
20
  * v56 scheduleEmptyCheck / is-empty supprimés (collapse prématuré).
21
+ * v58 tcfObs survit aux navigations : ne plus déconnecter dans cleanup().
22
+ * L'iframe __tcfapiLocator doit exister en permanence pour le CMP —
23
+ * la fenêtre entre cleanup() et ajaxify.end causait des erreurs
24
+ * "Cannot read properties of null (postMessage)" et disparition des pubs.
21
25
  * v57 Nettoyage prod : A_SHOWN/A_CREATED supprimés, normBool Set O(1),
22
26
  * muteConsole étend aux erreurs CMP getTCData, code nettoyé.
23
27
  */
@@ -558,7 +562,9 @@
558
562
  S.burstActive = false;
559
563
  S.runQueued = false;
560
564
  if (S.domObs) { S.domObs.disconnect(); S.domObs = null; }
561
- if (S.tcfObs) { S.tcfObs.disconnect(); S.tcfObs = null; }
565
+ // tcfObs intentionnellement préservé : l'iframe __tcfapiLocator doit
566
+ // exister en permanence — la déconnecter pendant la navigation cause
567
+ // des erreurs CMP postMessage et la disparition des pubs.
562
568
  }
563
569
 
564
570
  // ── MutationObserver DOM ───────────────────────────────────────────────────