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

Function platformsToTry

scripts/main/browserSession.js:55–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55function platformsToTry() {
56 const p = typeof args.platform === 'string' ? args.platform.toLowerCase() : ''
57 if (p === 'mobile' || p === 'desktop') return [p]
58 return ['desktop', 'mobile'] // prefer desktop, fall back to mobile
59}
60
61async function main() {
62 const { dbPath, exists } = getSessionDbPath(projectRoot, config.sessionPath)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected