From 607c190a9a8564768baf5082a0af90d785120bd1 Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 22 Nov 2023 18:52:28 +1000 Subject: [PATCH] Allow the API documentation to be accessed over HTTPS --- src/app/layouts/default-layout/default-layout.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/layouts/default-layout/default-layout.component.ts b/src/app/layouts/default-layout/default-layout.component.ts index bc7b5edd..8082bf3e 100644 --- a/src/app/layouts/default-layout/default-layout.component.ts +++ b/src/app/layouts/default-layout/default-layout.component.ts @@ -88,7 +88,7 @@ export class DefaultLayoutComponent implements OnInit, OnDestroy { goToDocumentation() { this.controllerService.get(+this.controllerId).then((controller: Controller) => { - (window as any).open(`http://${controller.host}:${controller.port}/docs`); + (window as any).open(`${controller.protocol}//${controller.host}:${controller.port}/docs`); }); }