Fix #31
This commit is contained in:
parent
88992c3964
commit
74aeb1feec
|
@ -380,6 +380,8 @@ browser.runtime.getPlatformInfo(function(info) {
|
||||||
}
|
}
|
||||||
|
|
||||||
browser.storage.local.set({"globalCounter": ++globalCounter});
|
browser.storage.local.set({"globalCounter": ++globalCounter});
|
||||||
|
if(!checkOSAndroid())
|
||||||
|
{
|
||||||
if(badgedStatus) {
|
if(badgedStatus) {
|
||||||
browser.browserAction.setBadgeText({text: (++badges[tabid]).toString(), tabId: tabid});
|
browser.browserAction.setBadgeText({text: (++badges[tabid]).toString(), tabId: tabid});
|
||||||
}
|
}
|
||||||
|
@ -387,6 +389,7 @@ browser.runtime.getPlatformInfo(function(info) {
|
||||||
{
|
{
|
||||||
browser.browserAction.setBadgeText({text: "", tabId: tabid});
|
browser.browserAction.setBadgeText({text: "", tabId: tabid});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
changes = true;
|
changes = true;
|
||||||
}
|
}
|
||||||
|
@ -400,6 +403,8 @@ browser.runtime.getPlatformInfo(function(info) {
|
||||||
}
|
}
|
||||||
|
|
||||||
browser.storage.local.set({"globalCounter": ++globalCounter});
|
browser.storage.local.set({"globalCounter": ++globalCounter});
|
||||||
|
if(!checkOSAndroid())
|
||||||
|
{
|
||||||
if(badgedStatus) {
|
if(badgedStatus) {
|
||||||
browser.browserAction.setBadgeText({text: (++badges[tabid]).toString(), tabId: tabid});
|
browser.browserAction.setBadgeText({text: (++badges[tabid]).toString(), tabId: tabid});
|
||||||
}
|
}
|
||||||
|
@ -407,6 +412,7 @@ browser.runtime.getPlatformInfo(function(info) {
|
||||||
{
|
{
|
||||||
browser.browserAction.setBadgeText({text: "", tabId: tabid});
|
browser.browserAction.setBadgeText({text: "", tabId: tabid});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
cancel = true;
|
cancel = true;
|
||||||
}
|
}
|
||||||
|
@ -661,6 +667,7 @@ browser.runtime.getPlatformInfo(function(info) {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function setBadgedStatus() {
|
function setBadgedStatus() {
|
||||||
|
if(!checkOSAndroid()){
|
||||||
browser.storage.local.get('badgedStatus', function(data) {
|
browser.storage.local.get('badgedStatus', function(data) {
|
||||||
if(data.badgedStatus) {
|
if(data.badgedStatus) {
|
||||||
badgedStatus = data.badgedStatus;
|
badgedStatus = data.badgedStatus;
|
||||||
|
@ -676,6 +683,7 @@ browser.runtime.getPlatformInfo(function(info) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if it is an android device.
|
* Check if it is an android device.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user