We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14cc8bf commit 462a5d4Copy full SHA for 462a5d4
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "markdown-downloader",
3
- "version": "1.0.4",
+ "version": "1.0.5",
4
"description": "markdown文章下载",
5
"main": "dist/index.js",
6
"scripts": {
src/download.js
@@ -35,13 +35,13 @@ export const ajax = (options) => {
35
}
36
37
xhr.error = (err) => {
38
- if (retry--) {
39
- console.log(err)
40
- noop(options.error)(err, xhr)
41
- } else {
+ if (retry) {
42
setTimeout(() => {
43
core(retry - 1)
44
}, 3e3)
+ } else {
+ console.log(err)
+ noop(options.error)(err, xhr)
45
46
47
if (/post/i.test(options.method)) {
0 commit comments