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