1
0
mirror of https://github.com/bitwarden/web synced 2025-12-30 07:03:20 +00:00

Only run it on cloud

This commit is contained in:
Hinton
2022-01-11 16:59:47 +01:00
parent 189b4437d4
commit c49a9aa330

View File

@@ -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<void> {
if (this.platformUtilsService.isSelfHost()) {
return super.getAndSetKey(url);
}
const el = document.createElement("iframe");
el.id = "cme_iframe";
document.body.appendChild(el);