Skip to content
On this page

isElectron(): boolean

Check whether the current window is running inside Electron

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.