From e6c0a12dd5df8ac947fff04e9b458955b2eba506 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sun, 30 Mar 2025 20:30:01 -0700 Subject: [PATCH] Add stream count to tab title on homepage Closes #2517 --- data/interfaces/default/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/data/interfaces/default/index.html b/data/interfaces/default/index.html index 582ac93f..ca95be42 100644 --- a/data/interfaces/default/index.html +++ b/data/interfaces/default/index.html @@ -298,6 +298,8 @@ $('#currentActivityHeader-bandwidth-tooltip').tooltip({ container: 'body', placement: 'right', delay: 50 }); + var title = document.title; + function getCurrentActivity() { activity_ready = false; @@ -368,6 +370,8 @@ $('#currentActivityHeader').show(); + document.title = stream_count + ' stream' + (stream_count > 1 ? 's' : '') + ' | ' + title; + sessions.forEach(function (session) { var s = (typeof Proxy === "function") ? new Proxy(session, defaultHandler) : session; var key = s.session_key; @@ -600,6 +604,8 @@ } else { $('#currentActivityHeader').hide(); $('#currentActivity').html('
Nothing is currently being played.
'); + + document.title = title; } activity_ready = true;