summaryrefslogtreecommitdiff
path: root/static/js/pichat.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/pichat.js')
-rwxr-xr-xstatic/js/pichat.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js
index 0a2743d..48b11ae 100755
--- a/static/js/pichat.js
+++ b/static/js/pichat.js
@@ -175,16 +175,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);
};
@@ -236,7 +235,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();