Skip to content

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 ^_^");
}

UAParser.js v2 is licensed under AGPLv3 or PRO licenses.