mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-23 11:56:00 +01:00
firefox now supports other context menu options
This commit is contained in:
parent
67d0976baa
commit
e43826e395
@ -362,8 +362,8 @@ export default class MainBackground {
|
||||
title: this.i18nService.t('autoFill'),
|
||||
});
|
||||
|
||||
// Firefox & Edge do not support writing to the clipboard from background
|
||||
if (!this.platformUtilsService.isFirefox() && !this.platformUtilsService.isEdge()) {
|
||||
// Edge does not support writing to the clipboard from background
|
||||
if (!this.platformUtilsService.isEdge()) {
|
||||
await this.contextMenusCreate({
|
||||
type: 'normal',
|
||||
id: 'copy-username',
|
||||
@ -489,11 +489,6 @@ export default class MainBackground {
|
||||
});
|
||||
}
|
||||
|
||||
if (this.platformUtilsService.isFirefox()) {
|
||||
// Firefox does not support writing to the clipboard from background
|
||||
return;
|
||||
}
|
||||
|
||||
if (cipher == null || (cipher.login.username && cipher.login.username !== '')) {
|
||||
await this.contextMenusCreate({
|
||||
type: 'normal',
|
||||
|
Loading…
Reference in New Issue
Block a user