diff options
author | Richard Beales <[email protected]> | 2013-03-21 20:24:26 +0000 |
---|---|---|
committer | Richard Beales <[email protected]> | 2013-03-21 20:24:26 +0000 |
commit | 8d051fa0769922df69ac737eee9d13dff67095a9 (patch) | |
tree | d0c8711902382f89d9afb4a0205fac20bf85f862 /js | |
parent | c489ae913d1778a9cdab45092bf0015e74300909 (diff) |
update SITE_TITLE customization to work without needing to be pre-defined, make it compatible with unread count now being at start of title
Diffstat (limited to '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 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) { |