nodebb-plugin-ezoic-infinite 1.7.47 → 1.7.48

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 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.7.47",
3
+ "version": "1.7.48",
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
@@ -760,9 +760,10 @@
760
760
  $(window).on('action:ajaxify.end.nbbEzoic', () => {
761
761
  S.pageKey = pageKey();
762
762
  blockedUntil = 0;
763
- // Fix #4 : muteConsole/ensureTcfLocator/warmNetwork déjà appelés au boot
764
- // et sont idempotents pas besoin de les rappeler à chaque navigation.
765
- muteConsole();
763
+ // muteConsole et warmNetwork sont idempotents — appelés au boot seulement.
764
+ // ensureTcfLocator doit être rappelé : ajaxify retire l'iframe __tcfapiLocator
765
+ // du DOM à chaque navigation, le CMP lève une erreur postMessage sans elle.
766
+ muteConsole(); ensureTcfLocator();
766
767
  patchShowAds(); getIO(); ensureDomObserver(); requestBurst();
767
768
  });
768
769