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
1 changed files with 6 additions and 0 deletions

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