]> git.sesse.net Git - remoteglot/commitdiff
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 570484c0882e93188d82678ae2f4687fcae58c0c..3bff1ffa4d1c22ae489a5b8c698196cec2f522ac 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';