mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 14:15:36 +07:00
Fix #31
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user