showing results for - "how to check whether we are running on electron or browser"
Vincent
11 Jan 2019
1npm install --save is-electron
Maya
21 May 2016
1let isElectron = require("is-electron");
2
3if(isElectron()){
4    console.log("Electron aww yeahhh !");
5}else{
6    console.log("Running in other platform as a normal browser");
7}