mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 02:39:05 +08:00
fixed safari issue
This commit is contained in:
parent
5a889865a8
commit
128a4e4de4
1 changed files with 1 additions and 1 deletions
|
|
@ -406,7 +406,7 @@ export function applyCustomBackground(): void {
|
|||
|
||||
window
|
||||
.matchMedia?.("(prefers-color-scheme: dark)")
|
||||
?.addEventListener("change", (event) => {
|
||||
?.addEventListener?.("change", (event) => {
|
||||
if (!Config.autoSwitchTheme || Config.customTheme) return;
|
||||
if (event.matches) {
|
||||
set(Config.themeDark, false);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue