mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Fix sonar
This commit is contained in:
parent
87c559ae66
commit
eefbc81538
@ -115,8 +115,7 @@ async function uploadFile(type, file = null, path = null, file_num = 0, _onProgr
|
||||
window.location.reload();
|
||||
},
|
||||
});
|
||||
} else {
|
||||
if (type !== "server_upload") {
|
||||
} else if (type !== "server_upload") {
|
||||
// All promises resolved successfully
|
||||
$("#upload_input").html(`<div class="card-header header-sm d-flex justify-content-between align-items-center" style="width: 100%;"><input value="${file.name}" type="text" id="file-uploaded" disabled></input> 🔒</div>`);
|
||||
if (type === "import") {
|
||||
@ -170,7 +169,6 @@ async function uploadFile(type, file = null, path = null, file_num = 0, _onProgr
|
||||
$(`#upload-progress-bar-${file_num + 1}`).html('<i style="color: black;" class="fas fa-box-check"></i>');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
async function calculateFileHash(file) {
|
||||
const arrayBuffer = await file.arrayBuffer();
|
||||
|
Loading…
Reference in New Issue
Block a user