mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
use navigator.clipboard to copy text if available
This commit is contained in:
@@ -65,7 +65,7 @@ export default class CommandsBackground {
|
||||
|
||||
const options = await this.passwordGenerationService.getOptions();
|
||||
const password = await this.passwordGenerationService.generatePassword(options);
|
||||
this.platformUtilsService.copyToClipboard(password);
|
||||
this.platformUtilsService.copyToClipboard(password, { window: window });
|
||||
this.passwordGenerationService.addHistory(password);
|
||||
|
||||
this.analytics.ga('send', {
|
||||
|
||||
Reference in New Issue
Block a user