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