Commit cbb70ed6 authored by Julien Schmidt's avatar Julien Schmidt

do not show unknown error box when HTTPS fails for non-members

parent 41dba4a2
......@@ -65,7 +65,7 @@ function getIPInfo() {
});
}
function checkStatus(url) {
function checkStatus(url, hideUnknown=false) {
return new Promise(function(resolve, reject) {
log("Performing test request to " + url + " ...");
tryGet(url, timeout).then(function(xhr) {
......@@ -109,7 +109,9 @@ function checkStatus(url) {
log("X-SSN-Problem: " + problem);
}
showUnknown();
if (!hideUnknown) {
showUnknown();
}
reject("FAIL");
return;
}
......@@ -351,7 +353,7 @@ function skipRemainingTests(index) {
failed = true;
}
return runTest(2, function() {
return checkStatus(httpsTestURL);
return checkStatus(httpsTestURL, failed);
});
}).then(function(res) {
if (res === false) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment