Skip to content

Commit 18b47c5

Browse files
committed
Don't depend on setInterval()
Fixes #1335
1 parent 7611347 commit 18b47c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function isCrushed() {}
1313

1414
if (
1515
process.env.NODE_ENV !== 'production' &&
16-
setInterval.name === 'setInterval' &&
16+
typeof isCrushed.name === 'string' &&
1717
isCrushed.name !== 'isCrushed'
1818
) {
1919
warning(

0 commit comments

Comments
 (0)