diff options
Diffstat (limited to 'static/js')
| -rw-r--r-- | static/js/pichat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index dfb6148..b465c47 100644 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -484,8 +484,8 @@ function refresh() { json.messages, function(m) { return !isDuplicateMessage(m) }); updateUI(messages, json.users, json.favs); - if (typeof UnseenMsgCounter !== 'undefined' && !HasFocus) { - UnseenMsgCounter += messages.length; + if (!Away.HasFocus) + Away.UnseenMsgCounter += messages.length; } } catch(e) { if (IsAdmin && window.console) { |
