summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-03-23 09:48:15 +0400
committerAndrew Dolgov <[email protected]>2013-03-23 09:48:15 +0400
commit9972b7cdd7b438f84b6ee6d8b30bc9124133b0c4 (patch)
tree7d1331733a7c2cc980a072c1efc32baf3cf75060 /js
parentb68dce191f8f7b1d63444a83b8a38b927d4e66f0 (diff)
Revert "update SITE_TITLE customization to work without needing to be pre-defined, make it compatible with unread count now being at start of title"
This reverts commit 8d051fa0769922df69ac737eee9d13dff67095a9.
Diffstat (limited to '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 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) {