mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
safari fix for autofill totp and context menu options
This commit is contained in:
@@ -172,6 +172,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
this.cipherService.updateLastUsedDate(options.cipher.id);
|
||||
}
|
||||
|
||||
console.log('fill');
|
||||
BrowserApi.tabSendMessage(tab, {
|
||||
command: 'fillForm',
|
||||
fillScript: fillScript,
|
||||
@@ -180,6 +181,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
if (options.cipher.type !== CipherType.Login || totpPromise ||
|
||||
(options.fromBackground && this.platformUtilsService.isFirefox()) || options.skipTotp ||
|
||||
!options.cipher.login.totp || !this.tokenService.getPremium()) {
|
||||
console.log('return early');
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -191,7 +193,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
return null;
|
||||
}).then((code: string) => {
|
||||
if (code) {
|
||||
UtilsService.copyToClipboard(code);
|
||||
UtilsService.copyToClipboard(code, options.doc);
|
||||
}
|
||||
|
||||
return code;
|
||||
|
||||
Reference in New Issue
Block a user