From b797ae3af3df08caf338085e19af0671f89a71cc Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Sun, 9 Nov 2014 21:41:49 +0100 Subject: [PATCH] Added protection against never-ending progress --- public_html/js/Presenters/ProgressPresenter.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/public_html/js/Presenters/ProgressPresenter.js b/public_html/js/Presenters/ProgressPresenter.js index d0a4cab7..81143e0d 100644 --- a/public_html/js/Presenters/ProgressPresenter.js +++ b/public_html/js/Presenters/ProgressPresenter.js @@ -28,6 +28,12 @@ App.Presenters.ProgressPresenter = function(nprogress) { } } + window.setInterval(function() { + if (nesting <= 0) { + nprogress.done(); + } + }, 1000); + return { start: start, done: done,