[ads] adsense causing trouble

This commit is contained in:
Andrea Vos 2022-12-18 11:40:28 +01:00
parent 11e23f5159
commit aa454b2564

View File

@ -50,6 +50,7 @@ export default {
async mounted() {
if (!this.enabled || !process.client) { return; }
await this.$loadScript('ezstandalone', `https://www.ezojs.com/ezoic/sa.min.js`);
await this.$loadScript('adsense', `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8518361481036191`);
this.enableAds();
},
computed: {
@ -105,10 +106,6 @@ export default {
ezstandalone.enable();
ezstandalone.display();
});
if (this.consent) {
this.$loadScript('adsense', `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8518361481036191`);
}
},
},
watch: {