diff options
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r-- | js/tt-rss.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js index 91aff8b68..1d6540dbb 100644 --- a/js/tt-rss.js +++ b/js/tt-rss.js @@ -179,9 +179,9 @@ function search() { function updateTitle() { var tmp = document.title; - if (tmp.indexOf(")") > 0) + if (tmp.indexOf('(')>0) { - tmp = tmp.substr(tmp.indexOf(")") + 1); + tmp = tmp.substr(0,tmp.lastIndexOf('(')); } if (global_unread > 0) { |