1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 00:33:44 +00:00

Add new context menu item: Copy Custom Field Name (#2045)

* Add "Copy custom field name" context menu item

* Title case context menu string

* Improve Copy Custom Field Name logic

* Move CopyClickedElement to runtime.background

* Update dependencies

* Add comments, refactor logic, add failure messages

* Fix typo and linting

* Fix typos

* Move null check inside function
This commit is contained in:
Thomas Rittson
2021-09-02 07:51:43 +10:00
committed by GitHub
parent ca03703f9d
commit 0bd22dcddc
7 changed files with 72 additions and 1 deletions

View File

@@ -195,6 +195,8 @@ export default class RuntimeBackground {
type: 'info',
});
break;
case 'getClickedElementResponse':
this.platformUtilsService.copyToClipboard(msg.identifier, { window: window });
default:
break;
}