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(); });