Added protection against never-ending progress
This commit is contained in:
parent
cefe701403
commit
b797ae3af3
1 changed files with 6 additions and 0 deletions
|
@ -28,6 +28,12 @@ App.Presenters.ProgressPresenter = function(nprogress) {
|
|||
}
|
||||
}
|
||||
|
||||
window.setInterval(function() {
|
||||
if (nesting <= 0) {
|
||||
nprogress.done();
|
||||
}
|
||||
}, 1000);
|
||||
|
||||
return {
|
||||
start: start,
|
||||
done: done,
|
||||
|
|
Loading…
Reference in a new issue