File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 4
4
// If there is no JSON, we no-op the core features of Raven
5
5
// since JSON is required to encode the payload
6
6
var _Raven = window . Raven ,
7
- hasJSON = ! ! ( isObject ( JSON ) && JSON . stringify ) ,
7
+ hasJSON = ! ! ( typeof JSON === 'object' && JSON . stringify ) ,
8
8
lastCapturedException ,
9
9
lastEventId ,
10
10
globalServer ,
Original file line number Diff line number Diff line change @@ -4,10 +4,10 @@ if (typeof define === 'function' && define.amd) {
4
4
define ( 'raven' , function ( Raven ) {
5
5
return ( window . Raven = Raven ) ;
6
6
} ) ;
7
- } else if ( isObject ( module ) ) {
7
+ } else if ( typeof module === 'object' ) {
8
8
// browserify
9
9
module . exports = Raven ;
10
- } else if ( isObject ( exports ) ) {
10
+ } else if ( typeof exports === 'object' ) {
11
11
// CommonJS
12
12
exports = Raven ;
13
13
} else {
You can’t perform that action at this time.
0 commit comments