From 9972b7cdd7b438f84b6ee6d8b30bc9124133b0c4 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 23 Mar 2013 09:48:15 +0400 Subject: 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. --- js/tt-rss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js') 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) { -- cgit v1.2.3-54-g00ecf