Skip to content

Commit

Permalink
shell/js: fix "undefined files uploaded"
Browse files Browse the repository at this point in the history
  • Loading branch information
takase1121 committed May 11, 2024
1 parent 723c891 commit 8925e8c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shell/js/fs.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export function uploadFiles(dest, dir) {
.then((v) => res(v.length))
.catch(rej);
};
fileInput.oncancel = () => res();
fileInput.oncancel = () => res(0);
fileInput.click();
});
}
Expand Down Expand Up @@ -182,7 +182,6 @@ async function fsDownloadDirectory(path) {
*/
async function fsDownloadFile(path) {
const filename = path.split("/").pop();
console.log(path, filename);
const content = FS.readFile(path);
downloadFile(
new File([content], filename, {
Expand Down

0 comments on commit 8925e8c

Please sign in to comment.