request = $.ajax({
url: url,
type: 'POST',
data: uploadData,
processData: false,
contentType: false,
})
} else {
request = $.ajax({
url: url,
type: 'POST',
data: data,
})
}
const response = await request;
const json = JSON.parse(response)
if (json.error === true) {
window.gitlist.ajaxErrorHandler(json);
}