From dedff5a1598ad67dd5c67af511d1884577d2ad99 Mon Sep 17 00:00:00 2001 From: Miles Blackwood Date: Wed, 4 Jun 2025 14:11:32 -0400 Subject: [PATCH] Return to Set usage. --- .../content/overlay-notifications-content.service.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/apps/browser/src/autofill/overlay/notifications/content/overlay-notifications-content.service.ts b/apps/browser/src/autofill/overlay/notifications/content/overlay-notifications-content.service.ts index 03b99f784d7..95f4d297b31 100644 --- a/apps/browser/src/autofill/overlay/notifications/content/overlay-notifications-content.service.ts +++ b/apps/browser/src/autofill/overlay/notifications/content/overlay-notifications-content.service.ts @@ -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"); }