Files
I2P_in_Private_Browsing_Mod…/platform.js
2019-10-06 22:11:23 -04:00

24 lines
526 B
JavaScript

function getChrome() {
if (browser.runtime.getBrowserInfo == undefined) {
console.log("Running in Chrome detected");
return true;
}
return false;
}
function isDroid() {
if (!getChrome()) {
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;
}