[fix](trx-frontend-http): follow active channel in page title
Use the currently tuned virtual channel for the website title\ninstead of always showing channel 0 metadata.\n\nVerification: node --check assets/web/app.js\nVerification: node --check assets/web/plugins/vchan.js\n\nCo-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -412,11 +412,12 @@ function currentTheme() {
|
||||
}
|
||||
|
||||
function updateDocumentTitle(rds = null) {
|
||||
if (!Number.isFinite(lastFreqHz)) {
|
||||
const freqHz = activeChannelFreqHz();
|
||||
if (!Number.isFinite(freqHz)) {
|
||||
document.title = originalTitle;
|
||||
return;
|
||||
}
|
||||
const parts = [formatFreq(lastFreqHz)];
|
||||
const parts = [formatFreq(freqHz)];
|
||||
const ps = rds?.program_service;
|
||||
if (ps && ps.length > 0) {
|
||||
parts.push(ps);
|
||||
|
||||
Reference in New Issue
Block a user