mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-04-19 11:11:18 +00:00
Fix for exception handling
This commit is contained in:
parent
de9e3edf5c
commit
3db05d0abe
@ -170,7 +170,7 @@ function setupFileInput(chooser) {
|
||||
inputContainer.querySelector('#fileInputText').innerHTML = window.fileInput.loading;
|
||||
|
||||
async function checkZipFile() {
|
||||
const hasZipFiles = allFiles.some(file => file.type && zipTypes.includes(file.type));
|
||||
const hasZipFiles = allFiles.some(file => ((typeof(file.type) != undefined) && zipTypes.includes(file.type)));
|
||||
|
||||
// Only change to extractPDF message if we actually have zip files
|
||||
if (hasZipFiles) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user