mirror of
https://github.com/Stirling-Tools/Stirling-PDF.git
synced 2025-06-06 18:30:57 +00:00
Check file.type exists before using it
This commit is contained in:
parent
b65a47ee97
commit
646c3efe54
@ -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 => zipTypes.includes(file.type));
|
const hasZipFiles = allFiles.some(file => file.type && 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