Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
connectivity-selftest
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
stustanet
connectivity-selftest
Commits
cbb70ed6
Commit
cbb70ed6
authored
May 15, 2019
by
Julien Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not show unknown error box when HTTPS fails for non-members
parent
41dba4a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
public/js/selftest.js
public/js/selftest.js
+5
-3
No files found.
public/js/selftest.js
View file @
cbb70ed6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment