Checks if the current execution context is an Electron environment.
The check uses three heuristics:
process.versions.electron
window.electron
navigator.userAgent
true if running in an Electron context, otherwise false.
true
false
Generated using TypeDoc
Checks if the current execution context is an Electron environment.
The check uses three heuristics:
process.versions.electron
exists.window.electron
object is present.navigator.userAgent
contains "electron".Returns
true
if running in an Electron context, otherwisefalse
.