Skip to content

Commit 45f1d57

Browse files
committed
fix SSE ...
1 parent c3247a5 commit 45f1d57

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/notification.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ export function initNotificationsTable() {
3333

3434
async function receiveUpdateCount(event: MessageEvent) {
3535
try {
36-
const data = JSON.parse(event.data);
37-
36+
const data = event.data;
3837
for (const count of document.querySelectorAll('.notification_count')) {
3938
count.classList.toggle('tw-hidden', data.Count === 0);
4039
count.textContent = `${data.Count}`;

0 commit comments

Comments
 (0)