Skip to content

Commit

Permalink
fix fetch parameter (mdn#29205)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielDelepine authored Sep 19, 2023
1 parent d78e56f commit af2dd2e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ button.addEventListener("click", () => aborter.abort());
logChunks("http://example.com/somefile.txt", { signal: aborter.signal });

async function logChunks(url, { signal }) {
const response = await fetch(url, signal);
const response = await fetch(url, { signal });
for await (const chunk of response.body) {
// Do something with the chunk
}
Expand Down

0 comments on commit af2dd2e

Please sign in to comment.