mirror of https://github.com/xwiki-labs/cryptpad
Fix typo and error in checkup test
This commit is contained in:
parent
efb5535cde
commit
22747cb380
|
@ -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) {}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue