Copy link to clipboard
Copied
Hi, i want to get OS type without callback wrapper
let say in JS code if i do
getOStype(); // it should give either MAC or Windows
QUESTION: i want to avoid callback wrapper
getOStype(function(ostype){
//os type
});
Here is how i'm doing
.jsx file
console.log(process.platform);
// returns "darwin" for mac
// returns "win32" for win
// I think you should have nodejs enabled in manifest.xml
var csInterface = new CSInterface(); //
console.log(csInterface.getOSInformation());
// mac example: "Mac OS X 10.14.6"
// win example: "Windows 10 64-bit"
Copy link to clipboard
Copied
console.log(process.platform);
// returns "darwin" for mac
// returns "win32" for win
// I think you should have nodejs enabled in manifest.xml
var csInterface = new CSInterface(); //
console.log(csInterface.getOSInformation());
// mac example: "Mac OS X 10.14.6"
// win example: "Windows 10 64-bit"