1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

firefox now supports other context menu options

This commit is contained in:
Kyle Spearrin
2018-12-15 22:14:05 -05:00
parent 67d0976baa
commit e43826e395

View File

@@ -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',