Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI: New browser title management #963

Merged
merged 2 commits into from
Feb 22, 2025
Merged

UI: New browser title management #963

merged 2 commits into from
Feb 22, 2025

Conversation

Dorfieeee
Copy link
Collaborator

@Dorfieeee Dorfieeee commented Feb 21, 2025

  • The icon blinks from old to new 3 times before settling to indicate change.
  • The title updates in background(not active tab).

{icon} {serverName} ({numCurrentPlayers}) | {timeRemaining} | {mapName}

const icons = {
idle: "⚫",
empty: "🟡",
loading: "🟠",
error: "🔴",
normal: "🟢",
ending: "🏁",
};

const numberOfBlinks = 3;
const blinkInterval = 500;

image
image

@cemathey cemathey merged commit 7012a68 into master Feb 22, 2025
3 checks passed
@cemathey cemathey deleted the ui/title-updates branch February 22, 2025 01:38
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.

2 participants