From 027cb23ba5efe82bb170d064306ecd7d38a4e428 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sun, 23 Oct 2022 13:56:47 +0200 Subject: [PATCH] [ads] an extra way of communicating consent to ezoic --- components/CookieConsent.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/CookieConsent.vue b/components/CookieConsent.vue index 5e7e7a1c1..43ccae0d1 100644 --- a/components/CookieConsent.vue +++ b/components/CookieConsent.vue @@ -78,6 +78,10 @@ export default { enableAds() { if (this.consent === undefined) { return; } + window._ezAllowed = (tcdata, purpose) => { + return !!this.consent; + } + this.ezstandalone = window.ezstandalone || {}; ezstandalone.cmd = ezstandalone.cmd || []; ezstandalone.cmd.push(() => {