Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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");
}
Source by ourcodeworld.com #
 
PREVIOUS NEXT
Tagged: #check #running #electron #browser
ADD COMMENT
Topic
Name
1+2 =