Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix progress not ending when response is empty #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

brennop
Copy link

@brennop brennop commented Apr 5, 2020

When response data is empty, the request 'loaded' and 'total' values are
0, making calculatePercentage return NaN.

When nProgress receives that value, it accepts as a 'number' and brakes
itself, preventing 'done()' from working.

Fixes #13

When response data is empty, the request 'loaded' and 'total' values are
0, making calculatePercentage return NaN.

When nProgress receives that value, it accepts as a 'number' and brakes
itself, preventing 'done()' from working.

Fixes rikmms#13
@alxlion
Copy link

alxlion commented Jan 15, 2021

Can we merge this PR please ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load not ending when POST request data is empty
2 participants