Skip to content

Commit 0efd48f

Browse files
wangrunlinTechQuery
authored andcommitted
[fix] ReadMe typo
1 parent f5b128b commit 0efd48f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReadMe.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,14 @@ document.querySelector('#download').onclick = async () => {
143143

144144
const fileHandle = await showSaveFilePicker({ suggestedName });
145145
const writer = await fileHandle.createWritable(),
146-
stream = bufferClient.download();
146+
stream = bufferClient.download(fileURL);
147147

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

151151
console.table({ total, loaded, percent });
152152
}
153-
write.close();
153+
writer.close();
154154
window.alert(`File ${fileHandle.name} downloaded successfully!`);
155155
};
156156
```

0 commit comments

Comments
 (0)