From: Steinar H. Gunderson Date: Mon, 21 Mar 2016 22:52:32 +0000 (+0100) Subject: Add a temporary safeguard. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=7695fce9c4cdd2a5070fb5123177405a3d0c27c7 Add a temporary safeguard. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 04bc149..21a995e 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1907,6 +1907,9 @@ var fmt_cp = function(v) { } var format_short_score = function(score) { + if (!score) { + return "???"; + } if (score[0] === 'm') { if (score[2]) { // Is a bound. return score[2] + "\u00a0M" + pad(score[1], 3);