detect if electron app or web page code example
Example 1: how to check whether we are running on electron or browser
let isElectron = require("is-electron");
if(isElectron()){
console.log("Electron aww yeahhh !");
}else{
console.log("Running in other platform as a normal browser");
}
Example 2: how to check whether we are running on electron or browser
npm install --save is-electron