diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-07-09 15:00:08 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-07-09 15:00:08 +0200 |
commit | bb931b5d9bd72477a0d02f9885c6ea30daac3fad (patch) | |
tree | 599be3ca5c4613cb3192537f468d9ecb83c67fe7 /public | |
parent | 26df7bdb09e0743525b7c290a5a28ca88dc0c5b8 (diff) | |
download | server-bb931b5d9bd72477a0d02f9885c6ea30daac3fad.tar.gz |
Start showing blink message immediately.
Diffstat (limited to 'public')
-rw-r--r-- | public/common/client.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/public/common/client.js b/public/common/client.js index ccbde0e..6ab86b3 100644 --- a/public/common/client.js +++ b/public/common/client.js @@ -83,10 +83,11 @@ let blink_title = document.title; let blink_timer = 0; function start_blinker(message) { - let tick = true; + let tick = false; if (blink_timer) stop_blinker(); if (!document.hasFocus()) { + document.title = message; blink_timer = setInterval(function () { document.title = tick ? message : blink_title; tick = !tick; |