[ads] add the other ezoic consent code

This commit is contained in:
Andrea Vos 2022-09-11 00:42:20 +02:00
parent e3cf477762
commit dee7801d1b

View File

@ -84,6 +84,12 @@ export default {
ezstandalone.setIsPWA();
ezstandalone.setDisablePersonalizedStatistics(!this.consent);
ezstandalone.setDisablePersonalizedAds(!this.consent);
if (typeof ezConsentCategories === 'object' && typeof __ezconsent === 'object') {
window.ezConsentCategories.preferences = this.consent;
window.ezConsentCategories.statistics = this.consent;
window.ezConsentCategories.marketing = this.consent;
__ezconsent.setEzoicConsentSettings(window.ezConsentCategories);
}
ezstandalone.define(Object.values(adPlaceholders));
ezstandalone.enable();
ezstandalone.display();