Skip to content
On this page

isElectron(): boolean

Check whether current window is running inside Electron

WARNING

This method is only applicable in a client-side browser environment

Code Example

js
import { isElectron } from 'ua-parser-js/helpers';

if(isElectron()) {
    console.log("Smile! you're on an Electron-based browser ^_^");
}

Licensed under the MIT License.