Safari shows integers only over the toolbar icon

This commit is contained in:
Deathamns 2014-10-19 14:35:03 +02:00
parent 0886f7e886
commit 7af9805296
1 changed files with 7 additions and 1 deletions

View File

@ -460,8 +460,14 @@ PageStore.prototype.updateBadge = function() {
var iconStr = '';
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);
}
}
vAPI.setIcon(this.tabId, iconPaths, iconStr);
};