@@ -144,7 +144,6 @@ function relativeTime(isoString: string): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
fetchNotifications();
|
|
||||||
fetchUnreadCount();
|
fetchUnreadCount();
|
||||||
eventSource = new EventSource('/api/notifications/stream');
|
eventSource = new EventSource('/api/notifications/stream');
|
||||||
eventSource.addEventListener('notification', (e) => {
|
eventSource.addEventListener('notification', (e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user