mirror of https://github.com/gorhill/uBlock.git
Safari shows integers only over the toolbar icon
This commit is contained in:
parent
0886f7e886
commit
7af9805296
|
@ -460,8 +460,14 @@ PageStore.prototype.updateBadge = function() {
|
||||||
|
|
||||||
var iconStr = '';
|
var iconStr = '';
|
||||||
if ( µb.userSettings.showIconBadge && netFiltering && this.perLoadBlockedRequestCount ) {
|
if ( µb.userSettings.showIconBadge && netFiltering && this.perLoadBlockedRequestCount ) {
|
||||||
|
// Safari knows numbers only, 0 (zero) means empty badge
|
||||||
|
if (vAPI.safari) {
|
||||||
|
iconStr = this.perLoadBlockedRequestCount;
|
||||||
|
}
|
||||||
|
else {
|
||||||
iconStr = µb.utils.formatCount(this.perLoadBlockedRequestCount);
|
iconStr = µb.utils.formatCount(this.perLoadBlockedRequestCount);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
vAPI.setIcon(this.tabId, iconPaths, iconStr);
|
vAPI.setIcon(this.tabId, iconPaths, iconStr);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue