MCPcopy Create free account
hub / github.com/GCWing/BitFun / isMacOSDesktopRuntime

Function isMacOSDesktopRuntime

src/web-ui/src/infrastructure/runtime/environment.ts:28–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26export const supportsNativeWindowDragging = supportsNativeWindowControls;
27
28export const isMacOSDesktopRuntime = (): boolean =>
29 supportsNativeWindowControls() &&
30 typeof navigator !== 'undefined' &&
31 typeof navigator.platform === 'string' &&
32 navigator.platform.toUpperCase().includes('MAC');

Callers 4

AppLayoutFunction · 0.90
NavBarFunction · 0.90
useWindowControlsFunction · 0.90
ToolbarModeFunction · 0.90

Calls 2

includesMethod · 0.80

Tested by

no test coverage detected