[ads] an extra way of communicating consent to ezoic

This commit is contained in:
Andrea Vos 2022-10-23 13:56:47 +02:00
parent 20efc46247
commit 027cb23ba5

View File

@ -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(() => {