We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I detect the Electron presence when I run Electron with nodeIntegration: false option?
nodeIntegration: false
The text was updated successfully, but these errors were encountered:
I never tried the nodeIntegration: false option in my projects. How about using navigator.userAgent to detect Electron presence, like below:
navigator.userAgent
electron/electron#5113 (comment)
function isElectron() { return navigator.userAgent.indexOf('Electron') !== -1; }
Sorry, something went wrong.
It works fine. Thank you!
4acaa6c
Added in v2.1.0
No branches or pull requests
How can I detect the Electron presence when I run Electron with
nodeIntegration: false
option?The text was updated successfully, but these errors were encountered: