diff --git a/src/components/Ad.svelte b/src/components/Ad.svelte new file mode 100644 index 00000000..e6bc4095 --- /dev/null +++ b/src/components/Ad.svelte @@ -0,0 +1,10 @@ + + +
diff --git a/src/routes/_layout.svelte b/src/routes/_layout.svelte index a2497cef..08ef6ae7 100644 --- a/src/routes/_layout.svelte +++ b/src/routes/_layout.svelte @@ -22,7 +22,7 @@ export let segment; - const { preloading } = stores(); + const { preloading, page } = stores(); const delayedPreloading = derived(preloading, (currentPreloading, set) => { setTimeout(() => set(currentPreloading), 250); }); @@ -30,6 +30,10 @@ // check local storage save on load onMount(async () => { await checkLocalSave(); + + page.subscribe(() => { + if (window.reloadAdSlots) window.reloadAdSlots(); + }); }); @@ -53,7 +57,7 @@ {#if $preloading && $delayedPreloading} {/if} -
{$t('footer.affliate')}
{$t('footer.copyright')}
@@ -66,10 +70,18 @@