From ccac9700c08bb53ffee6c89b4fdf7a6b210f45c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 8 May 2025 11:56:27 +0900 Subject: [PATCH] fix lint --- packages/frontend/src/theme.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/theme.ts b/packages/frontend/src/theme.ts index 064a7c254d..003fd8b6f0 100644 --- a/packages/frontend/src/theme.ts +++ b/packages/frontend/src/theme.ts @@ -130,13 +130,13 @@ let timeout: number | null = null; export function applyTheme(theme: Theme, persist = true) { if (timeout) { - clearTimeout(timeout); + window.clearTimeout(timeout); timeout = null; } - if (document.startViewTransition != null && prefer.s.animation) { + if (window.document.startViewTransition != null && prefer.s.animation) { window.document.documentElement.classList.add('_themeChanging_'); - document.startViewTransition(async () => { + window.document.startViewTransition(async () => { applyThemeInternal(theme, persist); await nextTick(); }).finished.then(() => {