From c7ba334bb96429d438ccde73f8168091a2a4d8a6 Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 19 Apr 2026 21:17:12 -0400 Subject: [PATCH] fix: freeze PP clock on any stoppage, not just intermission Co-Authored-By: Claude Opus 4.7 --- app/static/script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/static/script.js b/app/static/script.js index 70cbff2..98b445e 100644 --- a/app/static/script.js +++ b/app/static/script.js @@ -245,7 +245,7 @@ function teamRow(game, side, state) { const sogHtml = (state === 'live' || state === 'final') && sog !== undefined ? `${sog} SOG` : ''; const ppHtml = state === 'live' && pp - ? teamPpIndicator(pp, game['Intermission']) + ? teamPpIndicator(pp, game['Time Running']) : ''; const subParts = [sogHtml, ppHtml].filter(Boolean).join(''); @@ -266,9 +266,9 @@ function teamRow(game, side, state) { `; } -function teamPpIndicator(pp, intermission) { +function teamPpIndicator(pp, running) { const timeStr = pp.replace('PP ', ''); - if (intermission) { + if (!running) { return `PP ${timeStr}`; } const seconds = timeToSeconds(timeStr);