From 230c5b865c24a83b1a2ebea42fc27a2bcbf45ced Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 17 Oct 2022 16:16:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/home.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/home/home.js b/public/home/home.js index f7b9ee091..413b7f3b6 100755 --- a/public/home/home.js +++ b/public/home/home.js @@ -81,8 +81,12 @@ var isZh = true; if(lang != null && lang.nodeValue =="en-US" ){ isZh=false; } - +var readystat = false; document.onreadystatechange = function () { + if(readystat){ + return; + } + readystat = true; console.log("Start to open WebSocket."); queryRecommendData();