1
0
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:
Daniel James Smith 2021-10-19 16:10:43 +02:00
parent 0e832ee435
commit de1d26bd8d
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726

View File

@ -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() {