remotes/1693045480750635534/spooky-22
Aevann1 2021-09-26 12:18:58 +02:00
parent ccbf445fba
commit 27a5583217
1 changed files with 5 additions and 7 deletions

View File

@ -2,13 +2,11 @@
// Voting
function post_vote(url, callback) {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
var form = new FormData()
form.append("formkey", formkey());
xhr.withCredentials=true;
xhr.onload = function() {
var xhr = new XMLHttpRequest();
xhr.open("POST", url, true);
var form = new FormData()
form.append("formkey", formkey());
xhr.withCredentials=true;
xhr.send(form);
}