diff --git a/public/home/home.js b/public/home/home.js index c1849b3e3..ca99d45e6 100755 --- a/public/home/home.js +++ b/public/home/home.js @@ -101,11 +101,14 @@ document.onreadystatechange = function () { var data =JSON.parse(e.data) var html = ""; if (data != null){ + console.log("data= " + e.data); + console.log("msg length= " + messageQueue.length); if(messageQueue.length > maxSize){ delete messageQueue[0]; - }else{ - messageQueue.push(data); + console.log("msg length= " + messageQueue.length); } + messageQueue.push(data); + console.log("msg length= " + messageQueue.length); var currentTime = new Date().getTime(); for(var i = 0; i < messageQueue.length; i++){ var record = messageQueue[i];