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() { ...@@ -65,7 +65,7 @@ function getIPInfo() {
}); });
} }
function checkStatus(url) { function checkStatus(url, hideUnknown=false) {
return new Promise(function(resolve, reject) { return new Promise(function(resolve, reject) {
log("Performing test request to " + url + " ..."); log("Performing test request to " + url + " ...");
tryGet(url, timeout).then(function(xhr) { tryGet(url, timeout).then(function(xhr) {
...@@ -109,7 +109,9 @@ function checkStatus(url) { ...@@ -109,7 +109,9 @@ function checkStatus(url) {
log("X-SSN-Problem: " + problem); log("X-SSN-Problem: " + problem);
} }
showUnknown(); if (!hideUnknown) {
showUnknown();
}
reject("FAIL"); reject("FAIL");
return; return;
} }
...@@ -351,7 +353,7 @@ function skipRemainingTests(index) { ...@@ -351,7 +353,7 @@ function skipRemainingTests(index) {
failed = true; failed = true;
} }
return runTest(2, function() { return runTest(2, function() {
return checkStatus(httpsTestURL); return checkStatus(httpsTestURL, failed);
}); });
}).then(function(res) { }).then(function(res) {
if (res === false) { 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