diff options
| author | Acid Chicken (硫酸鶏) <root@acid-chicken.com> | 2023-07-21 10:56:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-21 10:56:48 +0000 |
| commit | 40c5699d9392a5dfdf28fe8bb473c8f69b6e924c (patch) | |
| tree | 23c0456cc6951b914aadac37d1cf3fd8fa07754b /packages/frontend/src/scripts | |
| parent | fix: response to experimental rIC support on Safari removed due to Google Log... (diff) | |
| download | sharkey-40c5699d9392a5dfdf28fe8bb473c8f69b6e924c.tar.gz sharkey-40c5699d9392a5dfdf28fe8bb473c8f69b6e924c.tar.bz2 sharkey-40c5699d9392a5dfdf28fe8bb473c8f69b6e924c.zip | |
fix: typo
Diffstat (limited to 'packages/frontend/src/scripts')
| -rw-r--r-- | packages/frontend/src/scripts/idle-render.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/frontend/src/scripts/idle-render.ts b/packages/frontend/src/scripts/idle-render.ts index 781b624cdf..a1470b82e9 100644 --- a/packages/frontend/src/scripts/idle-render.ts +++ b/packages/frontend/src/scripts/idle-render.ts @@ -1,4 +1,4 @@ -const requestIdleCallback: typeof globalThis.requestIdleCallback = globalThis.requestIdleCallback ?? (callback) => { +const requestIdleCallback: typeof globalThis.requestIdleCallback = globalThis.requestIdleCallback ?? ((callback) => { const start = performance.now(); const timeoutId = setTimeout(() => { callback({ @@ -10,10 +10,10 @@ const requestIdleCallback: typeof globalThis.requestIdleCallback = globalThis.re }); }); return timeoutId; -}; -const cancelIdleCallback: typeof globalThis.cancelIdleCallback = globalThis.cancelIdleCallback ?? (timeoutId) => { +}); +const cancelIdleCallback: typeof globalThis.cancelIdleCallback = globalThis.cancelIdleCallback ?? ((timeoutId) => { clearTimeout(timeoutId); -}; +}); class IdlingRenderScheduler { #renderers: Set<FrameRequestCallback>; |