From fc09a175a5a8f41eefbad01bb431ccefa3a07aa6 Mon Sep 17 00:00:00 2001 From: gabaldon Date: Tue, 30 Jul 2024 17:43:12 +0200 Subject: [PATCH] fix: check if client to get os --- components/sections/CoinSection.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/components/sections/CoinSection.vue b/components/sections/CoinSection.vue index fd06da63..71644e3e 100644 --- a/components/sections/CoinSection.vue +++ b/components/sections/CoinSection.vue @@ -200,8 +200,10 @@ const size = computed(() => { }) onMounted(async () => { - const latestRelease = await getLatestRelease(window.navigator) - release.value = latestRelease + if (import.meta.client) { + const latestRelease = await getLatestRelease(window.navigator) + release.value = latestRelease + } }) // const { t } = useI18n()