()
| 234 | |
| 235 | let themeRefreshTimeouts: ReturnType<typeof setTimeout>[] = [] |
| 236 | const refresh = () => { |
| 237 | for (const timeout of themeRefreshTimeouts) clearTimeout(timeout) |
| 238 | themeRefreshTimeouts = THEME_REFRESH_DELAYS.map((delay) => |
| 239 | setTimeout(() => { |
| 240 | refreshSystemTheme() |
| 241 | if (delay === THEME_REFRESH_DELAYS[THEME_REFRESH_DELAYS.length - 1]) void syncCustomThemes() |
| 242 | }, delay), |
| 243 | ) |
| 244 | } |
| 245 | let unsubscribeRefresh: (() => void) | undefined |
| 246 | unsubscribeRefresh = themes.subscribeRefresh?.(refresh) |
| 247 |
nothing calls this directly
no test coverage detected