Fix (null) in <title>.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 14 Nov 2014 18:15:53 +0000 (19:15 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 14 Nov 2014 18:15:53 +0000 (19:15 +0100)
www/js/remoteglot.js

index 570484c..3bff1ff 100644 (file)
@@ -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';