Function isElectronContext

  • Checks if the current execution context is an Electron environment.

    The check uses three heuristics:

    1. Node integration: Detects if process.versions.electron exists.
    2. Preload bridge: Detects if a custom window.electron object is present.
    3. Fallback: Checks if navigator.userAgent contains "electron".

    Returns

    true if running in an Electron context, otherwise false.

    Returns boolean

Generated using TypeDoc