Files
I2P_in_Private_Browsing_Mod…/platform.js
2019-10-28 01:11:16 -04:00

14 lines
317 B
JavaScript

function isDroid() {
var gettingInfo = browser.runtime.getPlatformInfo();
gettingInfo.then(got => {
if (got.os == "android") {
console.log("Running in Android detected");
return true;
} else {
console.log("Running in Desktop detected");
return false;
}
});
return false;
}