1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-07 04:03:29 +00:00

Return to Set usage.

This commit is contained in:
Miles Blackwood
2025-06-04 14:11:32 -04:00
parent 4e18faaba0
commit dedff5a159

View File

@@ -296,17 +296,13 @@ export class OverlayNotificationsContentService
this.notificationBarElement.remove();
this.notificationBarElement = null;
// Exclude Unlock
const removableNotificationTypes = [
const removableNotificationTypes = new Set([
NotificationTypes.Add,
NotificationTypes.Change,
NotificationTypes.AtRiskPassword,
];
] as NotificationType[]);
if (
closedByUserAction &&
removableNotificationTypes.some((nt) => nt === this.currentNotificationBarType)
) {
if (closedByUserAction && removableNotificationTypes.has(this.currentNotificationBarType)) {
void sendExtensionMessage("bgRemoveTabFromNotificationQueue");
}