Skip to content

Commit 4907801

Browse files
committed
Use typeof for undefined check on document
1 parent b274a5a commit 4907801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/raven.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
var _Raven = window.Raven,
77
hasJSON = !!(typeof JSON === 'object' && JSON.stringify),
88
// Raven can run in contexts where there's no document (react-native)
9-
hasDocument = !isUndefined(document),
9+
hasDocument = typeof document !== 'undefined',
1010
lastCapturedException,
1111
lastEventId,
1212
globalServer,

0 commit comments

Comments
 (0)