diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2016-06-17 17:34:47 +0800 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2016-06-17 17:34:47 +0800 |
commit | e641bcacd0dbb56dddb4eea13dbd15862a0022c9 (patch) | |
tree | ef1ad24e06f187b21779755da198be1da7163633 /static/mywatch.js | |
parent | 9fe740430fd459707f4fd8b0dd073a496326d48e (diff) | |
download | mywatch-e641bcacd0dbb56dddb4eea13dbd15862a0022c9.tar.gz |
Set window title to server name
Diffstat (limited to 'static/mywatch.js')
-rw-r--r-- | static/mywatch.js | 1 |
1 files changed, 1 insertions, 0 deletions
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); |