From 4e0df351925b72936fc0f08703c858f4533378b4 Mon Sep 17 00:00:00 2001 From: Aakash Reddy Date: Tue, 24 Dec 2024 14:27:17 +0530 Subject: [PATCH] fix :added lanuch sparrow button at workspace/[#2173] --- .../src/components/lanuch-desktop/LanuchDesktop.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@sparrow-common/src/components/lanuch-desktop/LanuchDesktop.svelte b/packages/@sparrow-common/src/components/lanuch-desktop/LanuchDesktop.svelte index ca3cffe79..59c372290 100644 --- a/packages/@sparrow-common/src/components/lanuch-desktop/LanuchDesktop.svelte +++ b/packages/@sparrow-common/src/components/lanuch-desktop/LanuchDesktop.svelte @@ -3,14 +3,14 @@ import { onMount } from "svelte"; export let launchSparrowWebApp; let windowOs = true; - function getOS() { + const getOS = () => { let userAgent = window.navigator.userAgent; if (userAgent.indexOf("Mac") != -1) { windowOs = true; } else if (userAgent.indexOf("Windows") != -1) { windowOs = false; } - } + }; onMount(() => { getOS(); });