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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user