mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
(ads) fix missing queue/registerZone
This commit is contained in:
parent
fcdc27abb9
commit
162d4b3a5c
@ -7,7 +7,7 @@
|
||||
<p class="text-center h5">{{currentKey}}</p>
|
||||
<Debug :v="adConfig"/>
|
||||
</div>
|
||||
<div v-else-if="adConfig.fuse" :class="['adsbypublift', adConfig?.sticky ? 'wrapper-sticky' : '']" :data-fuse="adConfig.slotId"></div>
|
||||
<div v-else-if="adConfig.fuse" :class="['adsbypublift', adConfig?.sticky ? 'wrapper-sticky' : '']" :data-fuse="adConfig.slotId" :id="'fuse-' + adConfig.slotId"></div>
|
||||
<div v-else-if="adConfig.waldo" :class="['adsbynewor', adConfig.video ? 'waldo-video-tag' : '']" :id="'waldo-tag-' + adConfig.slotId"></div>
|
||||
<ins v-else-if="adConfig.adsense" class="adsbygoogle"
|
||||
style="display:block;margin-block: 1em;"
|
||||
@ -50,6 +50,11 @@ export default {
|
||||
(window.adsbygoogle = window.adsbygoogle || []).push({});
|
||||
this.handleResize();
|
||||
window.addEventListener('resize', this.handleResize);
|
||||
|
||||
const fusetag = window.fusetag || (window.fusetag = { que: [] });
|
||||
fusetag.que.push(function() {
|
||||
fusetag.registerZone('fuse-' + this.adConfig.slotId);
|
||||
});
|
||||
},
|
||||
beforeUnmount() {
|
||||
window.removeEventListener('resize', this.handleResize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user