Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Feb 1, 2025
1 parent 5f43434 commit 6d22e9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/shells/chat/src/public/chat.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function initializeChat() {
doHeartbeat()

document.addEventListener('visibilitychange', () => {
if (document.visibilityState == 'visible') doHeartbeat()
if (document.visibilityState == 'visible') startHeartbeat()
else stopHeartbeat()
})

Expand Down

0 comments on commit 6d22e9b

Please sign in to comment.