diff options
Diffstat (limited to 'static/js')
| -rwxr-xr-x | static/js/pichat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 2804919..fb1c655 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 (typeof UnseenMsgCounter !== 'undefined') { + if (!HasFocus && typeof UnseenMsgCounter !== 'undefined') { UnseenMsgCounter += messages.length; } } catch(e) { |
