Skip to content

fix: update page title and favicon badge on background unread messages#157

Open
Pratikshya32 wants to merge 1 commit into
0rigin-c0de:mainfrom
Pratikshya32:fix/unread-notifications
Open

fix: update page title and favicon badge on background unread messages#157
Pratikshya32 wants to merge 1 commit into
0rigin-c0de:mainfrom
Pratikshya32:fix/unread-notifications

Conversation

@Pratikshya32
Copy link
Copy Markdown

Resolves #136

Changes

  • Implemented browser tab title updates and dynamic favicon badging to notify users of new messages in real-time when the application tab is in the background (hidden).
  • Tracks unread messages count while the tab is hidden and updates the title dynamically to (count) PiperChat.
  • Renders a custom red badge on the tab's favicon dynamically using HTML5 Canvas.
  • Automatically resets the tab title to PiperChat and clears the favicon badge once the tab is focused or returns to visibility.

@Pratikshya32 Pratikshya32 requested a review from 0rigin-c0de as a code owner May 22, 2026 13:41
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 22, 2026

Someone is attempting to deploy a commit to the Sunil Kumar's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Page title and favicon don't update when a new message arrives

1 participant