From 5b857464f4628ec97ae52f77effa8618bdd1ecd6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 12 Feb 2006 09:33:07 +0100 Subject: UNDO: display current feed in title (only in daemon mode for now) --- tt-rss.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tt-rss.js') diff --git a/tt-rss.js b/tt-rss.js index 1e5573f90..961c6df49 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -342,7 +342,7 @@ function localHotkeyHandler(keycode) { function updateTitle(s) { var tmp = "Tiny Tiny RSS"; - if (s != undefined) { + if (s && s.length > 0) { current_subtitle = s; } @@ -350,7 +350,7 @@ function updateTitle(s) { tmp = tmp + " (" + global_unread + ")"; } - if (current_subtitle) { + if (s) { tmp = tmp + " - " + current_subtitle; } -- cgit v1.2.3-54-g00ecf