Skip to content

Commit 5854e6d

Browse files
authored
fix testPassive
1 parent 8591f48 commit 5854e6d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ let _throttle = require('lodash.throttle')
44

55
let supportsPassive = false
66
try {
7+
if (typeof window === 'undefined') {
8+
return;
9+
}
710
var opts = Object.defineProperty({}, 'passive', {
811
get: function() {
912
supportsPassive = true

0 commit comments

Comments
 (0)