From df5d115db72bed9a9d5b60e4965c48ada62300d0 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Fri, 16 Dec 2016 11:45:17 +1300 Subject: [PATCH] Fix auto-downloads not happening after forced log in --- scripts/system/html/js/marketplacesInject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/system/html/js/marketplacesInject.js b/scripts/system/html/js/marketplacesInject.js index adafc11214..114742f086 100644 --- a/scripts/system/html/js/marketplacesInject.js +++ b/scripts/system/html/js/marketplacesInject.js @@ -149,7 +149,8 @@ $("a.btn.cancel").click(); history.back(); // Remove history item created by clicking "download". }; - } else { + } else if ($("div#view-signup_login_dialog").length === 0) { + // Don't stop checking for button if user is asked to log in. clearInterval(downloadTimer); downloadTimer = null; }