adding multiple pdfs

This commit is contained in:
Chris Cochrun 2022-09-24 14:58:44 -05:00
parent d8aca3d149
commit d2499e8df3

View file

@ -1034,6 +1034,7 @@ Item {
} }
function addFiles(files) { function addFiles(files) {
showPassiveNotification("More than one file");
for (let i = 0; i < files.length; i++) { for (let i = 0; i < files.length; i++) {
let file = files[i]; let file = files[i];
let ext = file.split('.').pop() let ext = file.split('.').pop()
@ -1045,9 +1046,9 @@ Item {
{ {
addImg(file); addImg(file);
} }
if (presexts.includes(extension)) if (presexts.includes(ext))
{ {
showPassiveNotification("it's a presentation!"); addPres(file);
return; return;
} }
} }