Skip to content
Permalink
Browse files

fix(progress): handle canceled requests (#301)

  • Loading branch information
ricardogobbosouza authored and pi0 committed Oct 22, 2019
1 parent cbf5131 commit 2903fd579fe5deed693b26660a687089a589ebdf
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/plugin.js
@@ -134,6 +134,11 @@ const setupProgress = (axios, ctx) => {
}

currentRequests--

if (axios.isCancel(error)) {
return
}

$loading().fail()
$loading().finish()
})

0 comments on commit 2903fd5

Please sign in to comment.
You can’t perform that action at this time.