1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-06-30 22:50:11 +02:00

await pdf creation in each for loop.

This commit is contained in:
jordy 2023-06-05 19:38:25 +02:00
parent e2a787e519
commit 7e9479806e

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