player state syncronisation added

This commit is contained in:
Vexure 2024-09-14 15:50:07 +03:00
parent 338e0bd009
commit 9c6eea7cee

View File

@ -748,7 +748,7 @@ var loadTopData = function () {
// Отправляем состояние игрока на сервер
function sendPlayerState () {
var psPath = defaultHostAdress +"/pRec.php";
var psPath = topWindow.hostAdress +"/pRec.php";
var XHR = new XMLHttpRequest();
XHR.open('POST', psPath);
XHR.setRequestHeader('Cache-Control', 'no-cache, no-store, max-age=0');