Fix auto-downloads not happening after forced log in

This commit is contained in:
David Rowe 2016-12-16 11:45:17 +13:00
parent a7e0135a6a
commit 04aef641c5

View file

@ -149,7 +149,8 @@
$("a.btn.cancel").click(); $("a.btn.cancel").click();
history.back(); // Remove history item created by clicking "download". 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); clearInterval(downloadTimer);
downloadTimer = null; downloadTimer = null;
} }