This commit is contained in:
Aevann1 2022-02-01 04:24:01 +02:00
parent 17a08aeb77
commit 527f436544
11 changed files with 16 additions and 16 deletions

View file

@ -67,7 +67,7 @@ function vote(type, id, dir) {
}
const xhr = new XMLHttpRequest();
xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection, true);
xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection);
xhr.setRequestHeader('xhr', 'xhr');
var form = new FormData()
form.append("formkey", formkey());
@ -106,7 +106,7 @@ function buy(mb) {
const xhr = new XMLHttpRequest();
url = `/buy/${kind}`
if (mb) url += "?mb=true"
xhr.open("POST", url, true);
xhr.open("POST", url);
xhr.setRequestHeader('xhr', 'xhr');
var form = new FormData()
form.append("formkey", formkey());