nodebb-plugin-ezoic-infinite 1.8.81 → 1.8.82
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/library.js +4 -0
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -155,7 +155,11 @@ const HEAD_PRECONNECTS = [
|
|
|
155
155
|
// async on sa.min.js caused "Timed out waiting for loadingStatus LOADING"
|
|
156
156
|
// because it could execute before CMP was ready.
|
|
157
157
|
// analytics.js provides Ezoic analytics integration.
|
|
158
|
+
// __tcfapiLocator must exist before the CMP scripts initialize so that
|
|
159
|
+
// Ezoic's TCF cross-frame channel is ready when sa.min.js calls defineScript.
|
|
160
|
+
// Without it the CMP fails to register consent and defineScript throws.
|
|
158
161
|
const EZOIC_SCRIPTS = [
|
|
162
|
+
'<script data-cfasync="false">(function(){if(document.getElementById("__tcfapiLocator"))return;var f=document.createElement("iframe");f.style.display="none";f.id=f.name="__tcfapiLocator";(document.head||document.documentElement).appendChild(f);}())</script>',
|
|
159
163
|
'<script data-cfasync="false" src="https://cmp.gatekeeperconsent.com/min.js"></script>',
|
|
160
164
|
'<script data-cfasync="false" src="https://the.gatekeeperconsent.com/cmp.min.js"></script>',
|
|
161
165
|
'<script src="//www.ezojs.com/ezoic/sa.min.js"></script>',
|