nodebb-plugin-ezoic-infinite 1.7.63 → 1.7.64
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 +10 -0
package/package.json
CHANGED
package/public/client.js
CHANGED
|
@@ -628,6 +628,8 @@
|
|
|
628
628
|
S.pageKey = pageKey();
|
|
629
629
|
blockedUntil = 0;
|
|
630
630
|
muteConsole(); ensureTcfLocator();
|
|
631
|
+
// Signaler à Ezoic le changement de page SPA
|
|
632
|
+
try { const ez = window.ezstandalone; if (ez?.newPage) { const f = () => { try { ez.newPage(); } catch(_){} }; typeof ez.cmd?.push==='function' ? ez.cmd.push(f) : f(); } } catch(_){}
|
|
631
633
|
patchShowAds(); getIO(); ensureDomObserver(); requestBurst();
|
|
632
634
|
});
|
|
633
635
|
const burstEvts = [
|
|
@@ -666,6 +668,14 @@
|
|
|
666
668
|
muteConsole();
|
|
667
669
|
ensureTcfLocator();
|
|
668
670
|
warmNetwork();
|
|
671
|
+
// Signaler à Ezoic qu'on est une SPA — sans ça il gère les slots comme
|
|
672
|
+
// une page statique et vide les pubs lors de son cycle interne.
|
|
673
|
+
try {
|
|
674
|
+
window.ezstandalone = window.ezstandalone || {};
|
|
675
|
+
const ez = window.ezstandalone;
|
|
676
|
+
const doSpa = () => { try { ez.setIsSinglePageApplication?.(true); } catch (_) {} };
|
|
677
|
+
typeof ez.cmd?.push === 'function' ? ez.cmd.push(doSpa) : doSpa();
|
|
678
|
+
} catch (_) {}
|
|
669
679
|
patchShowAds();
|
|
670
680
|
getIO();
|
|
671
681
|
ensureDomObserver();
|