Added a confirmation text

This commit is contained in:
a-ill
2023-07-20 00:57:20 +03:00
parent 2e14fb4846
commit ca3acdf8aa
22 changed files with 45 additions and 9873 deletions

View File

@@ -53,9 +53,11 @@ export function sendText(route,data,callback) {
if (status === 0 || (status >= 200 && status < 400)) {
// The request has been completed successfully
if (callback !== undefined) {
console.log(xhr.responseText)
callback(xhr.responseText)
}
} else {
callback(false)
// Oh no! There has been an error with the request!
}
}