MCPcopy Index your code
hub / github.com/coder/coder / isMac

Function isMac

site/src/utils/platform.ts:4–6  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2 * Returns true if the current platform is macOS.
3 */
4export function isMac(): boolean {
5 return Boolean(navigator.platform.match("Mac"));
6}
7
8/**
9 * Returns the platform-appropriate modifier key label: ⌘ on macOS,

Callers 4

WorkspaceTerminalFunction · 0.90
handlerFunction · 0.90
getOSKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected