Skip to content

Commit

Permalink
qualify window global
Browse files Browse the repository at this point in the history
  • Loading branch information
schlawg authored Feb 13, 2025
1 parent 5e78305 commit 2d78246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/round/src/clock/clockView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2d78246

Please sign in to comment.