mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
ok i actually broke it
This commit is contained in:
parent
8a373faba0
commit
f81444ee08
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue