Remove excessive defensive programming

This commit is contained in:
Mat 2024-10-23 07:12:35 +00:00
parent 429cb304a4
commit c44f60904a

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;
const host = window.location.hostname;
let port: string;
if (environment.production) {