fix: freeze PP clock on any stoppage, not just intermission
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -245,7 +245,7 @@ function teamRow(game, side, state) {
|
||||
const sogHtml = (state === 'live' || state === 'final') && sog !== undefined
|
||||
? `<span class="team-sog">${sog} SOG</span>` : '';
|
||||
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) {
|
||||
</div>`;
|
||||
}
|
||||
|
||||
function teamPpIndicator(pp, intermission) {
|
||||
function teamPpIndicator(pp, running) {
|
||||
const timeStr = pp.replace('PP ', '');
|
||||
if (intermission) {
|
||||
if (!running) {
|
||||
return `<span class="team-pp">PP ${timeStr}</span>`;
|
||||
}
|
||||
const seconds = timeToSeconds(timeStr);
|
||||
|
||||
Reference in New Issue
Block a user