1
0
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:
Daniel James Smith
2021-10-18 16:42:32 +02:00
parent fd8de4ca0c
commit 95e9387314
3 changed files with 20 additions and 27 deletions

View File

@@ -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);
});
}