mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-19 11:15:21 +01:00
Add messageListener for unlockCompleted
This commit is contained in:
parent
0e832ee435
commit
de1d26bd8d
@ -40,6 +40,12 @@ export default class ContextMenusBackground {
|
||||
await this.cipherAction(tab, info);
|
||||
}
|
||||
});
|
||||
|
||||
BrowserApi.messageListener('contextmenus.background', async (msg: any, sender: chrome.runtime.MessageSender, sendResponse: any) => {
|
||||
if (msg.command === 'unlockCompleted' && msg.data.target === 'contextmenus.background') {
|
||||
await this.cipherAction(msg.data.commandToRetry.sender.tab, msg.data.commandToRetry.msg.data);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private async generatePasswordToClipboard() {
|
||||
|
Loading…
Reference in New Issue
Block a user