MCPcopy Create free account
hub / github.com/TheNetsky/Microsoft-Rewards-Script / platformOf

Function platformOf

src/util/SessionStore.ts:24–26  ·  view source on GitHub ↗
(isMobile: boolean)

Source from the content-addressed store, hash-verified

22let db: DatabaseSync | null = null
23
24function platformOf(isMobile: boolean): 'mobile' | 'desktop' {
25 return isMobile ? 'mobile' : 'desktop'
26}
27
28function getDb(sessionPath: string): DatabaseSync {
29 if (db) return db

Callers 4

loadSessionFunction · 0.85
saveStorageStateFunction · 0.85
saveFingerprintFunction · 0.85
deleteSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected