1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

Move routing of actions after unlock into main.background

As we are unable to send a message from one background script to another, I moved the routing of the retryAction into main.background and call processMessages on the notificationBackground in unlockCompleted
This commit is contained in:
Daniel James Smith
2021-10-15 15:28:10 +02:00
parent 9c0bfd28db
commit ca0fe76172
3 changed files with 30 additions and 9 deletions

View File

@@ -78,6 +78,7 @@ document.addEventListener('DOMContentLoaded', () => {
sendPlatformMessage({
command: 'addToLockedVaultPendingNotifications',
from: 'notificationBar',
retryItem: bgAddSaveMessage
});
return;
@@ -122,6 +123,7 @@ document.addEventListener('DOMContentLoaded', () => {
sendPlatformMessage({
command: 'addToLockedVaultPendingNotifications',
from: 'notificationBar',
retryItem: bgChangeSaveMessage,
});
return;