adding multiple pdfs
This commit is contained in:
parent
d8aca3d149
commit
d2499e8df3
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue