Skip to content

Commit

Permalink
Do not jump to first file when using FSA API #1254 (#1268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaifroid authored Jul 12, 2024
1 parent 21cf33e commit 4ce5d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 4ce5d47

Please sign in to comment.