From 83d2eb4a0c25b39eb13e80b717c84bf61faf17ac Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 6 Aug 2017 22:11:15 +0200 Subject: [PATCH] Put the limit for showing seconds at 20 minutes instead of 10. --- www/js/remoteglot.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 836b4ba..34e1863 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -7,7 +7,7 @@ * @type {Number} * @const * @private */ -var SCRIPT_VERSION = 2016091401; +var SCRIPT_VERSION = 2016113002; /** * The current backend URL. @@ -1418,8 +1418,9 @@ var update_clock = function() { return; } - // If either player has ten minutes or less left, add the second counters. - var show_seconds = (white_clock_ms < 60 * 10 * 1000 || black_clock_ms < 60 * 10 * 1000); + // If either player has twenty minutes or less left, add the second counters. + // This matches what DGT clocks do. + var show_seconds = (white_clock_ms < 60 * 20 * 1000 || black_clock_ms < 60 * 20 * 1000); if (color) { // See when the clock will change next, and update right after that. -- 2.39.2