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; const files = e.target.files;
this.fileName = files[0].name; this.fileName = files[0].name;
for (var i=0; i < files.length; i++) { 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 => { document.querySelectorAll(".enable-on-file").forEach(element => {