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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user