From d10f6cb29c6709a25b45d3b6de4654da8051d0b2 Mon Sep 17 00:00:00 2001 From: silverwind Date: Sat, 27 Apr 2024 19:42:40 +0200 Subject: [PATCH] Update web_src/js/features/stopwatch.js --- web_src/js/features/stopwatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_src/js/features/stopwatch.js b/web_src/js/features/stopwatch.js index df321f8b21..192fe81c0b 100644 --- a/web_src/js/features/stopwatch.js +++ b/web_src/js/features/stopwatch.js @@ -165,7 +165,7 @@ function updateStopwatchTime(seconds) { const dur = prettyMilliseconds(secs * 1000 + delta, {compact: true}); if (stopwatch) stopwatch.textContent = dur; // refresh the tippy so that the triangle updates to the correct position - if (stopwatchTippy.state.isShown) { + if (stopwatchTippy?.state.isShown) { stopwatchTippy.hide(); stopwatchTippy.show(); }