lint compliance

This commit is contained in:
yflory 2023-08-18 10:41:43 +02:00
parent 242efec140
commit 99b4c9b037

View file

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