From a0bf055dba8e9dae4177526bdae66dbc834b7b10 Mon Sep 17 00:00:00 2001 From: Gabriel Donadel Dall'Agnol Date: Thu, 28 Mar 2024 09:48:20 -0300 Subject: [PATCH] feature(website): Enable Orbit button on Windows an Linux (#573) --- website/src/client/utils/orbit.ts | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/website/src/client/utils/orbit.ts b/website/src/client/utils/orbit.ts index 95545e9f..2b9adc5b 100644 --- a/website/src/client/utils/orbit.ts +++ b/website/src/client/utils/orbit.ts @@ -80,17 +80,15 @@ export function useOrbit() { ); useEffect(() => { - if (isRunningMacOS) { - fetchLocalOrbitServer('status') - .then((r) => { - setIsRunning(!!r?.version); - }) - .catch(() => {}); - } - }, [isRunningMacOS]); + fetchLocalOrbitServer('status') + .then((r) => { + setIsRunning(!!r?.version); + }) + .catch(() => {}); + }, []); return { - isEnabled: isRunningMacOS, + isEnabled: isRunningMacOS || isRunning, openWithExperienceURL, }; }