mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-05-23 02:12:01 +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;
|
inputContainer.querySelector('#fileInputText').innerHTML = window.fileInput.loading;
|
||||||
|
|
||||||
async function checkZipFile() {
|
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
|
// Only change to extractPDF message if we actually have zip files
|
||||||
if (hasZipFiles) {
|
if (hasZipFiles) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user