Release 1.6.2

This commit is contained in:
2026-01-26 15:34:52 +01:00
parent c5aa8a5156
commit 0c2720618a
5 changed files with 71 additions and 10 deletions

View File

@@ -203,6 +203,14 @@
let tickerInterval = null;
let tickerLastHeadlines = [];
function getTickerPollSeconds() {
// Refresh headlines on a long interval.
// Default: 12 hours (twice per day).
// Override via ?ticker_poll=seconds.
const tp = parseInt(new URLSearchParams(window.location.search).get('ticker_poll') || '', 10);
return Number.isFinite(tp) && tp > 0 ? tp : (12 * 60 * 60);
}
const ANIM_MS = 420;
function getTransitionMode(pl) {
@@ -391,8 +399,7 @@
clearInterval(tickerInterval);
tickerInterval = null;
}
// Refresh every 2 minutes; server caches too.
tickerInterval = setInterval(refreshTickerOnce, 120 * 1000);
tickerInterval = setInterval(refreshTickerOnce, getTickerPollSeconds() * 1000);
}
function clearStage() {