1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:15:55 +00:00

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 8d051fa076.
This commit is contained in:
Andrew Dolgov
2013-03-23 09:48:15 +04:00
parent b68dce191f
commit 9972b7cdd7
6 changed files with 6 additions and 13 deletions

View File

@@ -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) {