mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Use messages/events instead of main.unlockCompleted
This commit is contained in:
@@ -20,3 +20,10 @@ window.addEventListener('message', event => {
|
||||
});
|
||||
}
|
||||
}, false);
|
||||
|
||||
chrome.runtime.onMessage.addListener(event => {
|
||||
|
||||
if (event.command === 'unlockCompleted') {
|
||||
chrome.runtime.sendMessage(event);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user