From 8d051fa0769922df69ac737eee9d13dff67095a9 Mon Sep 17 00:00:00 2001 From: Richard Beales Date: Thu, 21 Mar 2013 20:24:26 +0000 Subject: update SITE_TITLE customization to work without needing to be pre-defined, make it compatible with unread count now being at start of title --- js/tt-rss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/tt-rss.js') 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) { -- cgit v1.2.3-54-g00ecf