Answers for "how to check whether we are running on electron or browser"

0

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");
}
Posted by: Guest on October-17-2020
0

how to check whether we are running on electron or browser

npm install --save is-electron
Posted by: Guest on October-17-2020

Code answers related to "how to check whether we are running on electron or browser"

Code answers related to "Javascript"

Browse Popular Code Answers by Language