This commit is contained in:
2023-08-08 14:16:44 +03:00
parent 53590cd94e
commit 392ea786d1

View File

@@ -39,7 +39,6 @@ function check_window_tm(){
clearInterval(intervl) clearInterval(intervl)
checkOpenWindow(window) checkOpenWindow(window)
} }
console.log("1")
}, },
1000) 1000)
} }
@@ -88,8 +87,8 @@ function check_new_messages (window,data){
}, },
error: function (data){ error: function (data){
document.querySelector(".info_profile").innerHTML = data.responseJSON.html; let request = document.querySelector(".info_profile").innerHTML = data.responseJSON.html;
if (window === null){ if (request === undefined || window === null){
clearTimeout(check_msg) clearTimeout(check_msg)
checkOpenWindow() checkOpenWindow()
} }