From 2d782467754c20b16439edb248f2845ad4e5ac78 Mon Sep 17 00:00:00 2001 From: Jonathan Gamble <101470903+schlawg@users.noreply.github.com> Date: Wed, 12 Feb 2025 22:49:21 -0600 Subject: [PATCH] qualify window global --- ui/round/src/clock/clockView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/round/src/clock/clockView.ts b/ui/round/src/clock/clockView.ts index b4fe9bdafe5f..b9fde96ea267 100644 --- a/ui/round/src/clock/clockView.ts +++ b/ui/round/src/clock/clockView.ts @@ -114,7 +114,7 @@ function showBar(ctrl: RoundController, color: Color) { export function updateElements(clock: ClockController, els: ClockElements, millis: Millis): void { if (els.time) els.time.innerHTML = formatClockTime(millis, clock.showTenths(millis), true, clock.opts.nvui); // 12/02/2025 Brave 1.74.51 android flickers the bar oninline transforms, even though .bar is display: none - if (els.bar && getComputedStyle(els.bar).display === 'block') + if (els.bar && window.getComputedStyle(els.bar).display === 'block') els.bar.style.transform = 'scale(' + clock.timeRatio(millis) + ',1)'; if (els.clock) { const cl = els.clock.classList;