Skip to content

Commit

Permalink
fix: add cookies-consent on client only #357
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Sep 24, 2024
1 parent 3f035ca commit 663c71e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 5 additions & 3 deletions components/Home/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,11 @@ function handlePoiCardClose() {
</BottomMenu>
</ClientOnly>

<footer class="tw-z-20">
<CookiesConsent />
</footer>
<ClientOnly>
<footer class="tw-z-20">
<CookiesConsent />
</footer>
</ClientOnly>
</div>
</template>

Expand Down
4 changes: 3 additions & 1 deletion components/Layout/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export default defineNuxtComponent({
>
</a>
</span>
<CookiesConsent />
<ClientOnly>
<CookiesConsent />
</ClientOnly>
</footer>
</template>

Expand Down

0 comments on commit 663c71e

Please sign in to comment.