Skip to content

Commit

Permalink
[fix] ReadMe typo
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrunlin authored and TechQuery committed Apr 10, 2024
1 parent f5b128b commit 0efd48f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ document.querySelector('#download').onclick = async () => {

const fileHandle = await showSaveFilePicker({ suggestedName });
const writer = await fileHandle.createWritable(),
stream = bufferClient.download();
stream = bufferClient.download(fileURL);

for await (const { total, loaded, percent, buffer } of stream) {
writer.write(buffer);

console.table({ total, loaded, percent });
}
write.close();
writer.close();
window.alert(`File ${fileHandle.name} downloaded successfully!`);
};
```
Expand Down

0 comments on commit 0efd48f

Please sign in to comment.