From c44f60904a31b695a86f77dc80cccac965b2dff0 Mon Sep 17 00:00:00 2001 From: Mat Date: Wed, 23 Oct 2024 07:12:35 +0000 Subject: [PATCH] Remove excessive defensive programming --- src/app/openlp.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/openlp.service.ts b/src/app/openlp.service.ts index ea569f5..424d0e6 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; const host = window.location.hostname; let port: string; if (environment.production) {