summaryrefslogtreecommitdiff
path: root/js/tt-rss.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tt-rss.js')
-rw-r--r--js/tt-rss.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tt-rss.js b/js/tt-rss.js
index 1d6540dbb..91aff8b68 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(0,tmp.lastIndexOf('('));
+ tmp = tmp.substr(tmp.indexOf(")") + 1);
}
if (global_unread > 0) {