()
| 35 | ] |
| 36 | |
| 37 | function 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 | |
| 43 | function mount(root: HTMLElement) { |
| 44 | let platform: Platform = getStoredPlatform() |
no outgoing calls
no test coverage detected
searching dependent graphs…