X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=9d83e55783168f841119c8666a91333be43e1f32;hp=c18349378cd2aac2c592246c9e7d764de5c86da7;hb=f21b4339a81e83eaaa36175948607299a98a8400;hpb=87acba69c22f5f745fcf83dc5d9aed1331173079 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index c183493..9d83e55 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -600,6 +600,10 @@ var update_board = function(data, num_viewers) { // The score. if (data['score'] !== null) { $("#score").text(data['score']); + var short_score = data['score'].replace(/Score: */, ""); + document.title = '(' + short_score + ') analysis.sesse.net'; + } else { + document.title = 'analysis.sesse.net'; } // The search stats.