1
0
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:
Daniel James Smith
2021-10-18 16:41:42 +02:00
parent 2699e0f5a0
commit fd8de4ca0c
5 changed files with 33 additions and 29 deletions

View File

@@ -20,3 +20,10 @@ window.addEventListener('message', event => {
});
}
}, false);
chrome.runtime.onMessage.addListener(event => {
if (event.command === 'unlockCompleted') {
chrome.runtime.sendMessage(event);
}
});