File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change 33 * @license MIT
44 */
55
6- import { isNode } from 'common/Platform' ;
76import type { ILogService } from 'common/services/Services' ;
87
98interface ITaskQueue {
@@ -148,7 +147,7 @@ class IdleTaskQueueInternal extends TaskQueue {
148147 * This reverts to a {@link PriorityTaskQueue} if the environment does not support idle callbacks.
149148 */
150149// eslint-disable-next-line @typescript-eslint/naming-convention
151- export const IdleTaskQueue = ( ! isNode && 'requestIdleCallback' in window ) ? IdleTaskQueueInternal : PriorityTaskQueue ;
150+ export const IdleTaskQueue = ( 'requestIdleCallback' in globalThis ) ? IdleTaskQueueInternal : PriorityTaskQueue ;
152151
153152/**
154153 * An object that tracks a single debounced task that will run on the next idle frame. When called
You can’t perform that action at this time.
0 commit comments