Skip to content

Commit

Permalink
chore: consistent global object usage
Browse files Browse the repository at this point in the history
Might as well be consistent with the globalThis use
  • Loading branch information
danieleloscozzese committed Jan 11, 2025
1 parent f410535 commit aef2818
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const postTask = (task, priority) => {
// Scheduler API is not available, set a timeout with the appropriate delay.
else {
return new Promise((resolve) => {
setTimeout(() => {
globalThis.setTimeout(() => {
task();
resolve();
}, priorityCallbackDelays[priority]);
Expand Down

0 comments on commit aef2818

Please sign in to comment.