1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-11-05 07:20:12 +01:00

Merge pull request #228 from jordyjordy/fix-multitool-filemixing

await pdf creation in each for loop.
This commit is contained in:
Anthony Stirling 2023-06-05 19:41:15 +01:00 committed by GitHub
commit d5c1c43eb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,7 +62,7 @@ class PdfContainer {
const files = e.target.files;
this.fileName = files[0].name;
for (var i=0; i < files.length; i++) {
this.addPdfFile(files[i], nextSiblingElement);
await this.addPdfFile(files[i], nextSiblingElement);
}
document.querySelectorAll(".enable-on-file").forEach(element => {