MCPcopy Create free account
hub / github.com/TanStack/hotkeys / getStoredPlatform

Function getStoredPlatform

examples/vanilla/formatForDisplay/src/main.ts:37–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35]
36
37function getStoredPlatform(): Platform {
38 const raw = localStorage.getItem('hotkeys-demo-platform')
39 if (raw === 'mac' || raw === 'windows' || raw === 'linux') return raw
40 return 'mac'
41}
42
43function mount(root: HTMLElement) {
44 let platform: Platform = getStoredPlatform()

Callers 1

mountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…