summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2021-07-09 15:00:08 +0200
committerTor Andersson <tor@ccxvii.net>2021-07-09 15:00:08 +0200
commitbb931b5d9bd72477a0d02f9885c6ea30daac3fad (patch)
tree599be3ca5c4613cb3192537f468d9ecb83c67fe7 /public
parent26df7bdb09e0743525b7c290a5a28ca88dc0c5b8 (diff)
downloadserver-bb931b5d9bd72477a0d02f9885c6ea30daac3fad.tar.gz
Start showing blink message immediately.
Diffstat (limited to 'public')
-rw-r--r--public/common/client.js3
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;