From: Steinar H. Gunderson Date: Fri, 14 Nov 2014 18:15:53 +0000 (+0100) Subject: Fix (null) in . X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=6f6ae45314e4f9876ab4fa9b9ba50e0c6a5e8371 Fix (null) in <title>. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 570484c..3bff1ff 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -601,7 +601,7 @@ var update_board = function(data, num_viewers) { if (data['score'] !== null) { $("#score").text(data['score']); } - if (data['short_score'] !== undefined) { + if (data['short_score'] !== undefined && data['short_score'] !== null) { document.title = '(' + data['short_score'] + ') analysis.sesse.net'; } else { document.title = 'analysis.sesse.net';