mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Use messages/events instead of main.unlockCompleted
This commit is contained in:
@@ -48,6 +48,12 @@ export default class NotificationBackground {
|
||||
|
||||
async processMessage(msg: any, sender: chrome.runtime.MessageSender) {
|
||||
switch (msg.command) {
|
||||
case 'unlockCompleted':
|
||||
if (msg.data.target !== 'notification.background') {
|
||||
return;
|
||||
}
|
||||
await this.processMessage(msg.data.commandToRetry.msg, msg.data.commandToRetry.sender);
|
||||
break;
|
||||
case 'bgGetDataForTab':
|
||||
await this.getDataForTab(sender.tab, msg.responseCommand);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user