mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-27 15:05:38 -04:00
[ads] adsense causing trouble
This commit is contained in:
parent
11e23f5159
commit
aa454b2564
@ -50,6 +50,7 @@ export default {
|
|||||||
async mounted() {
|
async mounted() {
|
||||||
if (!this.enabled || !process.client) { return; }
|
if (!this.enabled || !process.client) { return; }
|
||||||
await this.$loadScript('ezstandalone', `https://www.ezojs.com/ezoic/sa.min.js`);
|
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();
|
this.enableAds();
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@ -105,10 +106,6 @@ export default {
|
|||||||
ezstandalone.enable();
|
ezstandalone.enable();
|
||||||
ezstandalone.display();
|
ezstandalone.display();
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.consent) {
|
|
||||||
this.$loadScript('adsense', `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8518361481036191`);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user