ok i actually broke it

This commit is contained in:
veselcraft 2022-01-30 13:06:04 +03:00
parent 8a373faba0
commit f81444ee08
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -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();
}
};