* @type {Number}
* @const
* @private */
-var SCRIPT_VERSION = 2016032200;
+var SCRIPT_VERSION = 2016032201;
/**
* The current backend URL.
* name: string,
* url: string,
* id: string,
- * score: Object
+ * score: =Object,
+ * result: =string,
* }>}
* @private
*/
game_span.appendChild(game_a);
}
- var score = " (" + format_short_score(game['score']) + ")";
+ var score;
+ if (game['result']) {
+ score = " (" + game['result'] + ")";
+ } else {
+ score = " (" + format_short_score(game['score']) + ")";
+ }
game_span.appendChild(document.createTextNode(score));
games_div.appendChild(game_span);
// The <title> contains a very brief headline.
var title_elems = [];
- if (data['score']) {
- title_elems.push(format_short_score(data['score']).replace(/^ /, ""));
+ if (data['position'] && data['position']['result']) {
+ title_elems.push(data['position']['result']);
+ } else if (data['score']) {
+ title_elems.push(format_short_score(data['score']));
}
if (last_move !== null) {
title_elems.push(last_move);