]> git.sesse.net Git - ultimatescore/blobdiff - score.js
Fix an issue where newer browsers would squeeze the secondary scorebugs.
[ultimatescore] / score.js
index 1d30924c2a444e2c9a49db503f94b88f284d8f3b..22b909903fb3f5c58975cf74c8751f662c1d5697 100644 (file)
--- a/score.js
+++ b/score.js
@@ -10,7 +10,7 @@ let clocks = [
 let clock_visible = false;
 let comment_visible = false;
 let lowerthird_visible = false;
-let clock_limit = 30 * 60;
+let clock_limit = 25 * 60;
 let scoreA = 0;
 let scoreB = 0;
 let state = {};
@@ -87,6 +87,12 @@ function setclock(num, amount)
        clocks[num].elapsed = amount;
        clocks[num].origin = Date.now();
        update_clock(num);
+
+       // The BT-6000 likes to reset to 0:00 a while after the match is over,
+       // so go hide it then.
+       if (num == 0 && !clocks[num].running) {
+               hideclock();
+       }
 }
 
 function setclockfromstate()