Fix typo and error in checkup test

This commit is contained in:
yflory 2023-08-17 16:17:27 +02:00
parent efb5535cde
commit 22747cb380
1 changed files with 2 additions and 2 deletions

View File

@ -101,8 +101,8 @@ define([
var HTTP_API_URL;
if (API_URL) {
try {
var httpAPI = new URL(API_URL)
httpApi.protocol = API_URL.protocol === 'wss' ? 'https' : 'http';
var httpApi = new URL(API_URL)
httpApi.protocol = API_URL.protocol === 'wss:' ? 'https:' : 'http:';
HTTP_API_URL = httpApi.origin;
} catch (e) {}
}