Files
I2P_in_Private_Browsing_Mod…/platform.js

27 lines
497 B
JavaScript
Raw Normal View History

var android = false;
var gettingInfo = browser.runtime.getPlatformInfo();
2020-11-10 21:48:08 -05:00
gettingInfo.then((got) => {
2021-12-28 20:36:17 -05:00
if (got.os == 'android') {
console.log('Running in Android detected');
android = true;
return true;
} else {
2021-12-28 20:36:17 -05:00
console.log('Running in Desktop detected');
android = false;
return false;
}
});
2019-10-06 22:11:23 -04:00
function isDroid() {
2021-12-28 20:36:17 -05:00
console.log('android?', android);
if (android == undefined) {
return false;
}
return android;
2019-10-06 22:11:23 -04:00
}
function notClosable() {
return false;
}