mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Safari shows integers only over the toolbar icon
This commit is contained in:
parent
0886f7e886
commit
7af9805296
1 changed files with 7 additions and 1 deletions
|
@ -460,7 +460,13 @@ PageStore.prototype.updateBadge = function() {
|
|||
|
||||
var iconStr = '';
|
||||
if ( µb.userSettings.showIconBadge && netFiltering && this.perLoadBlockedRequestCount ) {
|
||||
iconStr = µb.utils.formatCount(this.perLoadBlockedRequestCount);
|
||||
// Safari knows numbers only, 0 (zero) means empty badge
|
||||
if (vAPI.safari) {
|
||||
iconStr = this.perLoadBlockedRequestCount;
|
||||
}
|
||||
else {
|
||||
iconStr = µb.utils.formatCount(this.perLoadBlockedRequestCount);
|
||||
}
|
||||
}
|
||||
vAPI.setIcon(this.tabId, iconPaths, iconStr);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue