diff options
| author | 2014-08-09 22:00:20 +0200 | |
|---|---|---|
| committer | 2014-08-09 22:00:20 +0200 | |
| commit | b68c5c6630c7b014ee29d0c782054faaa3aeb4fe (patch) | |
| tree | e21819357d14e57b6e10d9c64db61097151ba32d /p/scripts | |
| parent | d477373ef2879bdeeaa3c157287c0fab98afefdc (diff) | |
Dynamic favicon: remove the same number in the title
Now the number of unread articles in only shown in the favicon
https://github.com/marienfressinaud/FreshRSS/issues/539
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index a91e23400..ae7b69364 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -106,16 +106,16 @@ function incUnreadsFeed(article, feed_id, nb) { var isCurrentView = false; //Update unread: title - document.title = document.title.replace(/^((?:\([ 0-9]+\) )?)(.*? · )((?:\([ 0-9]+\) )?)/, function (m, p1, p2, p3) { + document.title = document.title.replace(/^((?:\([ 0-9]+\) )?)/, function (m, p1) { var $feed = $('#' + feed_id); if (article || ($feed.closest('.active').length > 0 && $feed.siblings('.active').length === 0)) { isCurrentView = true; - return incLabel(p1, nb, true) + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true); + return incLabel(p1, nb, true); } else if ($('.all.active').length > 0) { isCurrentView = feed_priority > 0; - return incLabel(p1, feed_priority > 0 ? nb : 0, true) + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true); + return incLabel(p1, feed_priority > 0 ? nb : 0, true); } else { - return p1 + p2 + incLabel(p3, feed_priority > 0 ? nb : 0, true); + return p1; } }); return isCurrentView; |
