diff --git a/jslib b/jslib index e20e878b8b..23917010a7 160000 --- a/jslib +++ b/jslib @@ -1 +1 @@ -Subproject commit e20e878b8b83b9eec33ceff6216e9c5e6885c8cd +Subproject commit 23917010a778e8464ba8b5f080d3306fc28a489e diff --git a/src/popup/components/action-buttons.component.ts b/src/popup/components/action-buttons.component.ts index 4593525d72..a89b27d8c7 100644 --- a/src/popup/components/action-buttons.component.ts +++ b/src/popup/components/action-buttons.component.ts @@ -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))); } diff --git a/src/popup/generator/password-generator-history.component.ts b/src/popup/generator/password-generator-history.component.ts index eedcd159aa..0d74c08720 100644 --- a/src/popup/generator/password-generator-history.component.ts +++ b/src/popup/generator/password-generator-history.component.ts @@ -20,7 +20,7 @@ export class PasswordGeneratorHistoryComponent extends BasePasswordGeneratorHist constructor(passwordGenerationService: PasswordGenerationService, analytics: Angulartics2, platformUtilsService: PlatformUtilsService, i18nService: I18nService, toasterService: ToasterService, private location: Location) { - super(passwordGenerationService, analytics, platformUtilsService, i18nService, toasterService); + super(passwordGenerationService, analytics, platformUtilsService, i18nService, toasterService, window); } close() { diff --git a/src/popup/generator/password-generator.component.ts b/src/popup/generator/password-generator.component.ts index faf862213e..431f0a30ee 100644 --- a/src/popup/generator/password-generator.component.ts +++ b/src/popup/generator/password-generator.component.ts @@ -27,7 +27,7 @@ export class PasswordGeneratorComponent extends BasePasswordGeneratorComponent { platformUtilsService: PlatformUtilsService, i18nService: I18nService, toasterService: ToasterService, private stateService: StateService, private router: Router, private location: Location) { - super(passwordGenerationService, analytics, platformUtilsService, i18nService, toasterService); + super(passwordGenerationService, analytics, platformUtilsService, i18nService, toasterService, window); } async ngOnInit() {