mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
fix copy options
This commit is contained in:
@@ -25,7 +25,7 @@ export class PasswordHistoryComponent implements OnInit {
|
||||
|
||||
copy(password: string) {
|
||||
this.analytics.eventTrack.next({ action: 'Copied Password History' });
|
||||
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')));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user