forked from rDrama/rDrama
remove useless blurp
parent
ee4c534a92
commit
72e76681b5
|
@ -128,11 +128,6 @@ function buy(mb) {
|
|||
url = `/buy/${kind}`
|
||||
if (mb) url += "?mb=true"
|
||||
const xhr = createXhrWithFormKey(url);
|
||||
if(typeof data === 'object' && data !== null) {
|
||||
for(let k of Object.keys(data)) {
|
||||
form.append(k, data[k]);
|
||||
}
|
||||
}
|
||||
xhr[0].onload = function() {
|
||||
let data
|
||||
try {data = JSON.parse(xhr[0].response)}
|
||||
|
|
|
@ -88,11 +88,6 @@ function sendMessage(e) {
|
|||
formData = new FormData(form);
|
||||
|
||||
formData.append("formkey", formkey());
|
||||
if(typeof data === 'object' && data !== null) {
|
||||
for(let k of Object.keys(data)) {
|
||||
form.append(k, data[k]);
|
||||
}
|
||||
}
|
||||
actionPath = form.getAttribute("action");
|
||||
|
||||
xhr.open("POST", actionPath);
|
||||
|
|
Loading…
Reference in New Issue