X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2Fcommons.js;h=e3e56d73ea69ec6108152a41cd4664537e0c7f59;hb=bdb3cb2379f32bfb9279da661b1d4dbaf9712299;hp=704c481b06a6b6bfff0604999631bb06611d68c0;hpb=f75953e13e14ee5374fd635beb1cb401f86fd46d;p=brisk.git diff --git a/web/commons.js b/web/commons.js index 704c481..e3e56d7 100644 --- a/web/commons.js +++ b/web/commons.js @@ -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) {