Skip to content

Commit

Permalink
Fix #363 (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
escwald authored and thebigredgeek committed Dec 14, 2016
1 parent 4c3e80d commit e4b8bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser.js
Expand Up @@ -44,9 +44,9 @@ function useColors() {
(typeof window !== 'undefined' && window.console && (console.firebug || (console.exception && console.table))) ||
// is firefox >= v31?
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
(navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
(navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) ||
// double check webkit in userAgent just in case we are in a worker
(navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
(navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/));
}

/**
Expand Down

0 comments on commit e4b8bb9

Please sign in to comment.