rstacruz / nprogress

For slim progress bars like on YouTube, Medium, etc
http://ricostacruz.com/nprogress
MIT License
26.09k stars 1.81k forks source link

Make a difference between NProgress.done() and NProgress.set(100) #118

Open Kadalia opened 9 years ago

Kadalia commented 9 years ago

Hello, NProgress.done() could hide the progress bar and the spinner NProgress.set(100) could hide only the spinner and leave the bar showned. Thank you, Philippe

rstacruz commented 9 years ago

As a workaround you can use:

NProgress.set(Math.min(0.99, n))

but I'd rather not implement a change in established behavior unless others have a :+1: votes on this.