Skip to content

Commit

Permalink
Fix typo in downloadprogress example
Browse files Browse the repository at this point in the history
Closes #36.
  • Loading branch information
domenic committed Feb 3, 2025
1 parent 4f04e04 commit 0464e6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ const writer = await ai.writer.create({
console.log(`Downloaded ${e.loaded * 100}%`);
});
}
);
});
```

If the download fails, then `downloadprogress` events will stop being fired, and the promise returned by `create()` will be rejected with a `"NetworkError"` `DOMException`.
Expand Down

0 comments on commit 0464e6f

Please sign in to comment.