nodebb-plugin-ezoic-infinite 1.8.37 → 1.8.38

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/library.js +3 -1
  2. package/package.json +1 -1
package/library.js CHANGED
@@ -141,11 +141,12 @@ const HEAD_PRECONNECTS = [
141
141
  const EZOIC_SCRIPTS = [
142
142
  '<script data-cfasync="false" src="https://cmp.gatekeeperconsent.com/min.js"></script>',
143
143
  '<script data-cfasync="false" src="https://the.gatekeeperconsent.com/cmp.min.js"></script>',
144
- '<script async src="//www.ezojs.com/ezoic/sa.min.js"></script>',
145
144
  '<script>',
145
+ 'window._ezaq = window._ezaq || {};',
146
146
  'window.ezstandalone = window.ezstandalone || {};',
147
147
  'ezstandalone.cmd = ezstandalone.cmd || [];',
148
148
  '</script>',
149
+ '<script async src="//www.ezojs.com/ezoic/sa.min.js"></script>',
149
150
  ].join('\n');
150
151
 
151
152
  // ── Hooks ────────────────────────────────────────────────────────────────────
@@ -181,6 +182,7 @@ plugin.injectEzoicHead = async (data) => {
181
182
  const cfg = buildClientConfig(settings, true);
182
183
  const stub = [
183
184
  '<script>',
185
+ 'window._ezaq = window._ezaq || {};',
184
186
  'window.ezstandalone = window.ezstandalone || {};',
185
187
  'ezstandalone.cmd = ezstandalone.cmd || [];',
186
188
  '</script>',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-plugin-ezoic-infinite",
3
- "version": "1.8.37",
3
+ "version": "1.8.38",
4
4
  "description": "Production-ready Ezoic infinite ads integration for NodeBB 4.x",
5
5
  "main": "library.js",
6
6
  "license": "MIT",