Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Deuscx committed Dec 10, 2023
1 parent 07cf176 commit 0b7a52f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"name": "i-queue",
"type": "module",
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@8.12.0",
"author": "Deuscx",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export interface IdleQueueOptions {
if (!window.requestIdleCallback) {
window.requestIdleCallback = (cb: any, options: any) => {
const start = Date.now()
return setTimeout(() => {
return window.setTimeout(() => {
cb({
didTimeout: false,
timeRemaining: () => Math.max(0, 50 - (Date.now() - start)),
Expand Down

0 comments on commit 0b7a52f

Please sign in to comment.