1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 07:43:35 +00:00

fix copying

This commit is contained in:
Kyle Spearrin
2018-08-17 12:25:21 -04:00
parent d215e0716e
commit bcb44e8cf7
4 changed files with 15 additions and 6 deletions

View File

@@ -119,7 +119,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnDestroy
}
this.analytics.eventTrack.next({ action: 'Copied ' + aType.toLowerCase() + ' from listing.' });
this.platformUtilsService.copyToClipboard(value, { doc: window.document });
this.platformUtilsService.copyToClipboard(value, { window: window });
this.toasterService.popAsync('info', null,
this.i18nService.t('valueCopied', this.i18nService.t(typeI18nKey)));
}