diff options
Diffstat (limited to 'core/js/maintenance-check.js')
-rw-r--r-- | core/js/maintenance-check.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/maintenance-check.js b/core/js/maintenance-check.js index 8ca00456fef..061a434214b 100644 --- a/core/js/maintenance-check.js +++ b/core/js/maintenance-check.js @@ -7,14 +7,14 @@ function checkStatus() { 0, location.pathname.indexOf('index.php') ); request.open("GET", ocroot+'status.php', true); - request.send(); request.onreadystatechange = function() { if (request.readyState === 4) { var response = request.responseText; var responseobj = JSON.parse(response); - if (responseobj.maintenance === 'false') { + if (responseobj.maintenance === false) { window.location.reload(); } } }; + request.send(); } |