diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-29 16:09:27 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-29 16:09:27 +0900 |
| commit | d9d796b204881fc14196b89230daa84564f599cf (patch) | |
| tree | fbf60d910d5934399963b356061df01217c8a0e9 /packages/frontend/src/utility/idle-render.ts | |
| parent | refactor(frontend): use symbol for di (diff) | |
| download | sharkey-d9d796b204881fc14196b89230daa84564f599cf.tar.gz sharkey-d9d796b204881fc14196b89230daa84564f599cf.tar.bz2 sharkey-d9d796b204881fc14196b89230daa84564f599cf.zip | |
lint fixes
Diffstat (limited to 'packages/frontend/src/utility/idle-render.ts')
| -rw-r--r-- | packages/frontend/src/utility/idle-render.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/utility/idle-render.ts b/packages/frontend/src/utility/idle-render.ts index 6adfedcb9f..32daa1df02 100644 --- a/packages/frontend/src/utility/idle-render.ts +++ b/packages/frontend/src/utility/idle-render.ts @@ -5,7 +5,7 @@ const requestIdleCallback: typeof globalThis.requestIdleCallback = globalThis.requestIdleCallback ?? ((callback) => { const start = performance.now(); - const timeoutId = setTimeout(() => { + const timeoutId = window.setTimeout(() => { callback({ didTimeout: false, // polyfill でタイムアウト発火することはない timeRemaining() { @@ -17,7 +17,7 @@ const requestIdleCallback: typeof globalThis.requestIdleCallback = globalThis.re return timeoutId; }); const cancelIdleCallback: typeof globalThis.cancelIdleCallback = globalThis.cancelIdleCallback ?? ((timeoutId) => { - clearTimeout(timeoutId); + window.clearTimeout(timeoutId); }); class IdlingRenderScheduler { |