This commit is contained in:
Kevin Röbert 2018-01-31 20:34:14 +01:00
parent 88992c3964
commit 74aeb1feec

View File

@ -380,6 +380,8 @@ browser.runtime.getPlatformInfo(function(info) {
}
browser.storage.local.set({"globalCounter": ++globalCounter});
if(!checkOSAndroid())
{
if(badgedStatus) {
browser.browserAction.setBadgeText({text: (++badges[tabid]).toString(), tabId: tabid});
}
@ -387,6 +389,7 @@ browser.runtime.getPlatformInfo(function(info) {
{
browser.browserAction.setBadgeText({text: "", tabId: tabid});
}
}
changes = true;
}
@ -400,6 +403,8 @@ browser.runtime.getPlatformInfo(function(info) {
}
browser.storage.local.set({"globalCounter": ++globalCounter});
if(!checkOSAndroid())
{
if(badgedStatus) {
browser.browserAction.setBadgeText({text: (++badges[tabid]).toString(), tabId: tabid});
}
@ -407,6 +412,7 @@ browser.runtime.getPlatformInfo(function(info) {
{
browser.browserAction.setBadgeText({text: "", tabId: tabid});
}
}
cancel = true;
}
@ -661,6 +667,7 @@ browser.runtime.getPlatformInfo(function(info) {
*
*/
function setBadgedStatus() {
if(!checkOSAndroid()){
browser.storage.local.get('badgedStatus', function(data) {
if(data.badgedStatus) {
badgedStatus = data.badgedStatus;
@ -676,6 +683,7 @@ browser.runtime.getPlatformInfo(function(info) {
}
});
}
}
/**
* Check if it is an android device.