1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-19 09:43:23 +00:00

fix copy options

This commit is contained in:
Kyle Spearrin
2018-08-17 12:24:56 -04:00
parent 1f9fbe43d7
commit bf9a9c5f9f
4 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ export class PasswordGeneratorHistoryComponent implements OnInit {
copy(password: string) {
this.analytics.eventTrack.next({ action: 'Copied Historical Password' });
const copyOptions = this.win != null ? { doc: this.win.document } : null;
const copyOptions = this.win != null ? { window: this.win } : null;
this.platformUtilsService.copyToClipboard(password, copyOptions);
this.toasterService.popAsync('info', null, this.i18nService.t('valueCopied', this.i18nService.t('password')));
}