MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / detectPlatform

Function detectPlatform

src/services/registry.ts:14–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12export type Platform = 'electron' | 'web-serve' | 'web-browser'
13
14export function detectPlatform(): Platform {
15 if (IS_ELECTRON) return 'electron'
16 if (IS_BROWSER_STANDALONE) return 'web-browser'
17 return 'web-serve'
18}
19
20const adapters = new Map<string, unknown>()
21let _initialized = false

Callers 1

initServicesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected