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 => {