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.electronexists.window.electronobject is present.navigator.userAgentcontains "electron".Returns
trueif running in an Electron context, otherwisefalse.