nodebb-plugin-ezoic-infinite 1.8.57 → 1.8.59
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 +3 -6
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -139,6 +139,7 @@ const EZOIC_SCRIPTS = [
|
|
|
139
139
|
HEAD_PRECONNECTS,
|
|
140
140
|
|
|
141
141
|
// CMP en premier
|
|
142
|
+
'<script data-cfasync="false" src="https://cmp.gatekeeperconsent.com/min.js"></script>',
|
|
142
143
|
'<script data-cfasync="false" src="https://the.gatekeeperconsent.com/cmp.min.js"></script>',
|
|
143
144
|
|
|
144
145
|
// Standalone Ezoic
|
|
@@ -152,7 +153,7 @@ const EZOIC_SCRIPTS = [
|
|
|
152
153
|
|
|
153
154
|
// Analytics
|
|
154
155
|
'<script src="https://ezoicanalytics.com/analytics.js"></script>',
|
|
155
|
-
].join('\n');
|
|
156
|
+
].join('\n') + '\n';
|
|
156
157
|
|
|
157
158
|
// ── Hooks ────────────────────────────────────────────────────────────────────
|
|
158
159
|
|
|
@@ -186,11 +187,7 @@ plugin.injectEzoicHead = async (data) => {
|
|
|
186
187
|
|
|
187
188
|
if (!excluded) {
|
|
188
189
|
const existing = data.templateData.customHTML || '';
|
|
189
|
-
|
|
190
|
-
// ✅ Anti-doublon côté rendu (si un thème/plugin ajoute déjà sa.min.js)
|
|
191
|
-
if (!existing.includes('www.ezojs.com/ezoic/sa.min.js')) {
|
|
192
|
-
data.templateData.customHTML = EZOIC_SCRIPTS + existing;
|
|
193
|
-
}
|
|
190
|
+
data.templateData.customHTML = EZOIC_SCRIPTS + existing;
|
|
194
191
|
}
|
|
195
192
|
} catch (_) {}
|
|
196
193
|
|