mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Environment Variable for running in Electron #357
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @robertmclaws on GitHub (Jul 7, 2019).
Originally assigned to: @GregorBiswanger on GitHub.
Is there currently a safe way to detect whether or not an app is running in Electron? If not, would it be possible for you folks to be able to compile in an environment variable (like "IS_ELECTRON") when a .NET app is running under Electron.NET? Right no I'm having to make my users add it manually, but it would be nice if I could detect it automatically.
Thanks!
@GregorBiswanger commented on GitHub (Jul 8, 2019):
Hi @robertmclaws
we have the static property
HybridSupport.IsElectronActiveis that what you want?