Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(notifications): notifications should focus on click and close (#395)

teof498a7107976
diff --git a/js/app/packages/notifications/notification-platform.ts b/js/app/packages/notifications/notification-platform.ts
index a634b04585..32c5db0094 100644
--- a/js/app/packages/notifications/notification-platform.ts
+++ b/js/app/packages/notifications/notification-platform.ts
@@ -100,7 +100,9 @@ export async function maybeHandlePlatformNotification(
notificationHandle !== 'disabled-in-ui'
) {
notificationHandle.onClick(() => {
+ window.focus();
openNotification(nm, splitLayoutManager);
+ notificationHandle.close();
});
}
}