MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / isElectron

Function isElectron

core/src/utils/platform.ts:106–106  ·  view source on GitHub ↗
(win: Window)

Source from the content-addressed store, hash-verified

104};
105
106const isElectron = (win: Window): boolean => testUserAgent(win, /electron/i);
107
108const isPWA = (win: Window): boolean =>
109 !!(win.matchMedia?.('(display-mode: standalone)').matches || (win.navigator as any).standalone);

Callers

nothing calls this directly

Calls 1

testUserAgentFunction · 0.85

Tested by

no test coverage detected