(event: Event)
| 67 | // main.ts imports this module synchronously to make that ordering reliable. |
| 68 | if (typeof window !== "undefined") { |
| 69 | const handler = (event: Event) => { |
| 70 | const detail = (event as CustomEvent<NotificationCreate>).detail; |
| 71 | if (detail) pushReactNotification(detail); |
| 72 | }; |
| 73 | window.addEventListener(VueShellBridgeEvent.notification, handler); |
| 74 | if (import.meta.hot) { |
| 75 | import.meta.hot.dispose(() => { |