Archived
1
0
This commit is contained in:
Jeff Becker 2018-11-06 15:29:06 -05:00
parent 0e72397956
commit 955efe33a1
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -36,7 +36,6 @@ var nntpchan_mod_commit_spam = function(elem) {
{ {
var ajax = new XMLHttpRequest(); var ajax = new XMLHttpRequest();
ajax.setRequestHeader("X-CSRF-Token", jax.getResponseHeader("X-CSRF-Token"));
ajax.onreadystatechange = function() { ajax.onreadystatechange = function() {
if(ajax.readyState == 4) if(ajax.readyState == 4)
{ {
@ -60,6 +59,7 @@ var nntpchan_mod_commit_spam = function(elem) {
} }
}; };
ajax.open("POST", "/mod/spam") ajax.open("POST", "/mod/spam")
ajax.setRequestHeader("X-CSRF-Token", jax.getResponseHeader("X-CSRF-Token"));
ajax.send(formdata); ajax.send(formdata);
} }
else else