From c3437ad30b28ec8a9912ddea6ba783d94fcf5025 Mon Sep 17 00:00:00 2001 From: Mat Date: Sun, 20 Oct 2024 10:20:37 +0000 Subject: [PATCH] Fix mistake with colon in protocol --- src/app/openlp.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/openlp.service.ts b/src/app/openlp.service.ts index 3b114da..ea569f5 100644 --- a/src/app/openlp.service.ts +++ b/src/app/openlp.service.ts @@ -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(); this.webSocketStateChanged$ = new EventEmitter();