Open brennop opened 4 years ago
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
Can we merge this PR please ?
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