Added protection against never-ending progress

This commit is contained in:
Marcin Kurczewski 2014-11-09 21:41:49 +01:00
parent cefe701403
commit b797ae3af3

View file

@ -28,6 +28,12 @@ App.Presenters.ProgressPresenter = function(nprogress) {
} }
} }
window.setInterval(function() {
if (nesting <= 0) {
nprogress.done();
}
}, 1000);
return { return {
start: start, start: start,
done: done, done: done,