Skip to content

Commit b8b75b2

Browse files
committed
1 parent 8353537 commit b8b75b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: manager/includes/header.inc.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ function onmouseup()
298298
// check connection to server
299299
evo.checkConnectionToServer = function() {
300300
let xhr = new ( window.ActiveXObject || XMLHttpRequest )('Microsoft.XMLHTTP');
301-
xhr.open('HEAD', '//' + window.location.hostname + window.location.pathname.replace('index.php', 'includes/version.inc.php') + '?time=' + new Date().getTime(), false);
301+
xhr.open('HEAD', '<?= MODX_MANAGER_URL ?>includes/version.inc.php?time=' + new Date().getTime(), false);
302302
try {
303303
xhr.send();
304304
return (xhr.status >= 200 && xhr.status < 300 || xhr.status === 304);

0 commit comments

Comments
 (0)