diff --git a/www/js/app.js b/www/js/app.js index 11afe5ba2..ec1b1ac9f 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -1617,7 +1617,7 @@ function displayFileSelect () { folderSelect.addEventListener('click', async function (e) { e.preventDefault(); const previousZimFiles = await abstractFilesystemAccess.selectDirectoryFromPickerViaFileSystemApi() - if (previousZimFiles.length !== 0) setLocalArchiveFromFileList(previousZimFiles); + if (previousZimFiles.length === 1) setLocalArchiveFromFileList(previousZimFiles); }); } if (params.isWebkitDirApiSupported) {