Skip to content

Commit 969b93a

Browse files
committed
Update readme
1 parent 3cd2b32 commit 969b93a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# [Fetch Progress](https://samundrak.github.io/fetch-progress)
1+
# [Fetch Progress](https://samundrak.github.io/fetch-progress)
22

33
Progress of response for fetch API.
44
Get progress report of your response called from fetch like percentage, speed, total, transferred, eta and remaining.
@@ -48,6 +48,9 @@ const self = this;
4848
onProgress(progress) {
4949
self.setState({ progress });
5050
},
51+
onError(err) {
52+
console.log(err);
53+
},
5154
})
5255
)
5356
.then(r => r.blob())
@@ -60,6 +63,7 @@ const self = this;
6063
```
6164

6265
# Demo
63-
[Live Demo](https://samundrak.github.io/fetch-progress)
66+
67+
[Live Demo](https://samundrak.github.io/fetch-progress)
6468

6569
Clone this repo and run `npm i` and `npm run dev` which will start a server or you can see `examples/` folder in this repo.

0 commit comments

Comments
 (0)