From bb931b5d9bd72477a0d02f9885c6ea30daac3fad Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 9 Jul 2021 15:00:08 +0200 Subject: Start showing blink message immediately. --- public/common/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'public') 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; -- cgit v1.2.3