1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-12 22:33:35 +00:00

pass window doc to copy function

This commit is contained in:
Kyle Spearrin
2018-04-19 08:04:00 -04:00
parent 0ddc4c2d41
commit 04f687d6fc
4 changed files with 4 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ export class ActionButtonsComponent {
}
this.analytics.eventTrack.next({ action: 'Copied ' + aType });
this.platformUtilsService.copyToClipboard(value);
this.platformUtilsService.copyToClipboard(value, { doc: window.document });
this.toasterService.popAsync('info', null,
this.i18nService.t('valueCopied', this.i18nService.t(typeI18nKey)));
}