From e641bcacd0dbb56dddb4eea13dbd15862a0022c9 Mon Sep 17 00:00:00 2001 From: Igor Pashev Date: Fri, 17 Jun 2016 17:34:47 +0800 Subject: Set window title to server name --- static/mywatch.js | 1 + 1 file changed, 1 insertion(+) (limited to 'static/mywatch.js') diff --git a/static/mywatch.js b/static/mywatch.js index 7ea728e..02d0bf6 100644 --- a/static/mywatch.js +++ b/static/mywatch.js @@ -75,6 +75,7 @@ $(function() { }); $("#serverList a").on("click", function() { var server = $(this).text(); + document.title = server + ' — ' + 'MyWatch'; $(this).parent().parent().find('.active').removeClass('active'); $(this).parent().addClass('active'); clearInterval(interval); -- cgit v1.2.3