1
1
mirror of https://github.com/go-gitea/gitea synced 2024-06-01 17:05:48 +00:00

Update web_src/js/features/stopwatch.js

This commit is contained in:
silverwind 2024-04-27 19:42:40 +02:00 committed by GitHub
parent 5372c79416
commit d10f6cb29c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}