()
| 177 | // This is to make sure that the font size is updated when the stylesheet is updated |
| 178 | // and the user focuses back on the window |
| 179 | const onFocus = () => { |
| 180 | const root = transitionsContainerRef.parentElement as HTMLElement |
| 181 | const fontSize = getComputedStyle(root).fontSize |
| 182 | root.style.setProperty('--tsqd-font-size', fontSize) |
| 183 | } |
| 184 | onFocus() |
| 185 | window.addEventListener('focus', onFocus) |
| 186 | onCleanup(() => { |