Fix mistake with colon in protocol

This commit is contained in:
Mat 2024-10-20 10:20:37 +00:00
parent e5b8132ccf
commit c3437ad30b

View File

@ -65,7 +65,7 @@ export class OpenLPService {
private titleCasePipe: TitleCasePipe, private sentenceCasePipe: SentenceCasePipe,
private translateService: TranslateService
) {
const protocol = window.location.protocol || "http";
const protocol = window.location.protocol || "http:";
const host = window.location.hostname;
let port: string;
if (environment.production) {
@ -74,7 +74,7 @@ export class OpenLPService {
else {
port = '4316';
}
this.apiURL = `${protocol}://${host}:${port}/api/v2`;
this.apiURL = `${protocol}//${host}:${port}/api/v2`;
this.host = host;
this.stateChanged$ = new EventEmitter<State>();
this.webSocketStateChanged$ = new EventEmitter<WebSocketStatus>();