mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
firefox now supports other context menu options
This commit is contained in:
@@ -362,8 +362,8 @@ export default class MainBackground {
|
|||||||
title: this.i18nService.t('autoFill'),
|
title: this.i18nService.t('autoFill'),
|
||||||
});
|
});
|
||||||
|
|
||||||
// Firefox & Edge do not support writing to the clipboard from background
|
// Edge does not support writing to the clipboard from background
|
||||||
if (!this.platformUtilsService.isFirefox() && !this.platformUtilsService.isEdge()) {
|
if (!this.platformUtilsService.isEdge()) {
|
||||||
await this.contextMenusCreate({
|
await this.contextMenusCreate({
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
id: 'copy-username',
|
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 !== '')) {
|
if (cipher == null || (cipher.login.username && cipher.login.username !== '')) {
|
||||||
await this.contextMenusCreate({
|
await this.contextMenusCreate({
|
||||||
type: 'normal',
|
type: 'normal',
|
||||||
|
|||||||
Reference in New Issue
Block a user