diff options
Diffstat (limited to 'static')
| -rwxr-xr-x | static/js/pichat.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index fb1c655..a8557c1 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -181,16 +181,15 @@ function refresh() { UnseenMsgCounter += messages.length; } } catch(e) { - if (IsAdmin) { - alert("Exception in refresh"); - console.log(e); + if (IsAdmin && window.console) { + console.error(e); } } setTimeout(refresh, 1000); }; var onError = function(resp, textStatus, errorThrown) { - if (IsAdmin) { - console.log(resp, textStatus, errorThrown); + if (IsAdmin && window.console) { + console.error(resp, textStatus, errorThrown); } setTimeout(refresh, 1000); }; @@ -237,7 +236,6 @@ function initProfile() { data: { 'attr': attr, 'val': newVal } }); if (attr == 'avatar') { - console.log(newVal); if (newVal != "") { var s = '<img id="avatarPic" src="' + newVal + '" width="150" />'; $('#avatarPic').replaceWith(s).show(); |
