]> git.sesse.net Git - remoteglot/blobdiff - www/js/remoteglot.js
In <title>, there is nothing to align, so remove the funny-looking space.
[remoteglot] / www / js / remoteglot.js
index ac3f8e97adc6d29a08f92ed4027de9f5dac5e582..a37fede21d8d44cd7a821e0946d681662f090eac 100644 (file)
@@ -652,7 +652,7 @@ var update_board = function(current_data, display_data) {
        // The <title> contains a very brief headline.
        var title_elems = [];
        if (data['short_score'] !== undefined && data['short_score'] !== null) {
-               title_elems.push(data['short_score']);
+               title_elems.push(data['short_score'].replace(/^ /, ""));
        }
        if (last_move !== null) {
                title_elems.push(last_move);