This commit is contained in:
Aevann1 2021-12-11 02:59:37 +02:00
parent c21c85ed2b
commit c35f72f31e
5 changed files with 6 additions and 17 deletions

View file

@ -1,6 +1,5 @@
function formkey() {
let formkey = document.getElementById("formkey")
if (formkey) return formkey.innerHTML;
return document.getElementById("formkey").innerHTML
}
document.addEventListener("DOMContentLoaded", function(){
@ -22,8 +21,6 @@ function post_toast(url, reload, data) {
}
}
form.append("formkey", formkey());
xhr.withCredentials=true;
xhr.onload = function() {