// This matches what DGT clocks do.
let show_seconds = (white_clock_ms < 60 * 20 * 1000 || black_clock_ms < 60 * 20 * 1000);
- if (color) {
+ if (color && remaining_ms > 0) {
// See when the clock will change next, and update right after that.
let next_update_ms;
if (show_seconds) {