allignment pre merge in master
[brisk.git] / web / commons.js
index 704c481..e3e56d7 100644 (file)
@@ -252,6 +252,12 @@ function send_mesg(mesg)
     // alert("xhr_wr: "+xhr_wr+"  is_conn: "+is_conn);
     xhr_wr.open('GET', 'index_wr.php?'+(is_conn ? 'sess='+sess+'&' : '')+'mesg='+mesg, (is_conn ? true : false));
     xhr_wr.onreadystatechange = function() { return; };
+    if (typeof(console) == 'object') {
+        if (typeof(console.log) == 'function') {
+            var ldate = new Date();
+            console.log(ldate.getTime()+':MESG:'+mesg);
+        }
+    }
     xhr_wr.send(null);
 
     if (!is_conn) {