Skip to content

Commit bee14c4

Browse files
pre-commit-ci[bot]codingjoe
authored andcommitted
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 39c61ec commit bee14c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

s3file/static/s3file/js/s3file.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function waitForAllFiles(form) {
1414
}
1515
}
1616

17-
function request(method, url, data, fileInput, file, form) {
17+
async function request(method, url, data, fileInput, file, form) {
1818
file.loaded = 0
19-
return new Promise((resolve, reject) => {
19+
return await new Promise((resolve, reject) => {
2020
const xhr = new globalThis.XMLHttpRequest()
2121

2222
xhr.onload = () => {

0 commit comments

Comments
 (0)