diff --git a/Web/static/js/timezone.js b/Web/static/js/timezone.js index fc4f8c55..10d0c5c9 100755 --- a/Web/static/js/timezone.js +++ b/Web/static/js/timezone.js @@ -3,8 +3,8 @@ xhr = new XMLHttpRequest(); xhr.open("POST", "/iapi/timezone", true); xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded'); -xhr.onload = () => { - if(JSON.parse(response.originalTarget.responseText).response == 1) { +xhr.onload = (response) => { + if(JSON.parse(response.originalTarget.responseText).success == 1) { window.location.reload(); } };