From aa454b2564f96f4aefc81fc37a79503fcda298f1 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Sun, 18 Dec 2022 11:40:28 +0100 Subject: [PATCH] [ads] adsense causing trouble --- components/CookieConsent.vue | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/components/CookieConsent.vue b/components/CookieConsent.vue index ee005204f..9e97676e8 100644 --- a/components/CookieConsent.vue +++ b/components/CookieConsent.vue @@ -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: {