From 56858bed05958b766b818aa037ef3617a33cf3cb Mon Sep 17 00:00:00 2001 From: dumpfmprod Date: Wed, 3 Feb 2010 01:20:22 -0500 Subject: Fixed browser-related issue with message counter --- static/js/pichat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'static/js/pichat.js') diff --git a/static/js/pichat.js b/static/js/pichat.js index fb1c655..48e1e50 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -177,7 +177,7 @@ function refresh() { json.messages, function(m) { return !isDuplicateMessage(m) }); updateUI(messages, json.users); - if (!HasFocus && typeof UnseenMsgCounter !== 'undefined') { + if (typeof UnseenMsgCounter !== 'undefined' && !HasFocus) { UnseenMsgCounter += messages.length; } } catch(e) { -- cgit v1.2.3-70-g09d2