Files
I2P_in_Private_Browsing_Mod…/platform.js

14 lines
317 B
JavaScript
Raw Normal View History

2019-10-06 22:11:23 -04:00
function isDroid() {
2019-10-28 01:11:16 -04:00
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;
}
});
2019-10-06 22:11:23 -04:00
return false;
}