From c49a9aa330670c37588bd4a4e99f80690a17c071 Mon Sep 17 00:00:00 2001 From: Hinton Date: Tue, 11 Jan 2022 16:59:47 +0100 Subject: [PATCH] Only run it on cloud --- src/services/keyConnector.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/keyConnector.service.ts b/src/services/keyConnector.service.ts index 82b4fff7..d2a0a90f 100644 --- a/src/services/keyConnector.service.ts +++ b/src/services/keyConnector.service.ts @@ -26,13 +26,16 @@ export class KeyConnectorService extends BaseKeyConnectorService { logService: LogService, organizationService: OrganizationService, private environmentService: EnvironmentService, - private i18nService: I18nService, private platformUtilsService: PlatformUtilsService ) { super(stateService, cryptoService, apiService, tokenService, logService, organizationService); } async getAndSetKey(url: string): Promise { + if (this.platformUtilsService.isSelfHost()) { + return super.getAndSetKey(url); + } + const el = document.createElement("iframe"); el.id = "cme_iframe"; document.body.appendChild(el);