From f81444ee08db378e6c9fba58d283c466990b1396 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sun, 30 Jan 2022 13:06:04 +0300 Subject: [PATCH] ok i actually broke it --- Web/static/js/timezone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); } };