mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
Add messageListener for unlockCompleted
This commit is contained in:
@@ -40,6 +40,12 @@ export default class ContextMenusBackground {
|
|||||||
await this.cipherAction(tab, info);
|
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() {
|
private async generatePasswordToClipboard() {
|
||||||
|
|||||||
Reference in New Issue
Block a user