]> git.sesse.net Git - remoteglot/commitdiff
In <title>, there is nothing to align, so remove the funny-looking space.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Nov 2014 01:53:01 +0000 (02:53 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sat, 22 Nov 2014 01:53:01 +0000 (02:53 +0100)
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) {
        // 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);
        }
        if (last_move !== null) {
                title_elems.push(last_move);