mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
Remove logic out of notification content scripts
This commit is contained in:
@@ -70,20 +70,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
command: 'bgAddSave',
|
||||
folder: folderId,
|
||||
};
|
||||
|
||||
if (isVaultLocked) {
|
||||
sendPlatformMessage({
|
||||
command: 'promptForLogin'
|
||||
});
|
||||
|
||||
sendPlatformMessage({
|
||||
command: 'addToLockedVaultPendingNotifications',
|
||||
from: 'notificationBar',
|
||||
retryItem: bgAddSaveMessage
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
sendPlatformMessage(bgAddSaveMessage);
|
||||
});
|
||||
|
||||
@@ -115,19 +101,6 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
const bgChangeSaveMessage = {
|
||||
command: 'bgChangeSave'
|
||||
};
|
||||
|
||||
if (isVaultLocked) {
|
||||
sendPlatformMessage({
|
||||
command: 'promptForLogin'
|
||||
});
|
||||
|
||||
sendPlatformMessage({
|
||||
command: 'addToLockedVaultPendingNotifications',
|
||||
from: 'notificationBar',
|
||||
retryItem: bgChangeSaveMessage,
|
||||
});
|
||||
return;
|
||||
}
|
||||
sendPlatformMessage(bgChangeSaveMessage);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user