Skip to content

Commit e061c17

Browse files
committed
use setTimeout instead of window.setTimeout
1 parent 69cf8cb commit e061c17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function Nanobounce (timeout) {
1313

1414
if (!inFlight) {
1515
inFlight = true
16-
window.setTimeout(next, timeout)
16+
setTimeout(next, timeout)
1717
}
1818

1919
function next () {
@@ -24,7 +24,7 @@ function Nanobounce (timeout) {
2424
callback()
2525
callback = null
2626
} else {
27-
window.setTimeout(next, diff)
27+
setTimeout(next, diff)
2828
}
2929
}
3030
}

0 commit comments

Comments
 (0)