bb
This commit is contained in:
parent
c0f3d5cb68
commit
d1edad9965
49 changed files with 117 additions and 118 deletions
|
@ -67,8 +67,8 @@ function vote(type, id, dir) {
|
|||
}
|
||||
|
||||
const xhr = new XMLHttpRequest();
|
||||
xhr.setRequestHeader('Authorization', 'xhr');
|
||||
xhr.open("POST", "/vote/" + type.replace('-mobile','') + "/" + id + "/" + votedirection, true);
|
||||
xhr.setRequestHeader('xhr', 'xhr');
|
||||
var form = new FormData()
|
||||
form.append("formkey", formkey());
|
||||
xhr.withCredentials=true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue