File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,9 +44,9 @@ function useColors() {
4444 ( typeof window !== 'undefined' && window . console && ( console . firebug || ( console . exception && console . table ) ) ) ||
4545 // is firefox >= v31?
4646 // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
47- ( navigator . userAgent . toLowerCase ( ) . match ( / f i r e f o x \/ ( \d + ) / ) && parseInt ( RegExp . $1 , 10 ) >= 31 ) ||
47+ ( navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / f i r e f o x \/ ( \d + ) / ) && parseInt ( RegExp . $1 , 10 ) >= 31 ) ||
4848 // double check webkit in userAgent just in case we are in a worker
49- ( navigator . userAgent . toLowerCase ( ) . match ( / a p p l e w e b k i t \/ ( \d + ) / ) ) ;
49+ ( navigator . userAgent && navigator . userAgent . toLowerCase ( ) . match ( / a p p l e w e b k i t \/ ( \d + ) / ) ) ;
5050}
5151
5252/**
You can’t perform that action at this time.
0 commit comments