Skip to content

Commit

Permalink
feature(website): Enable Orbit button on Windows an Linux (#573)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieldonadel authored Mar 28, 2024
1 parent ae7e7b0 commit a0bf055
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions website/src/client/utils/orbit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
}

0 comments on commit a0bf055

Please sign in to comment.