We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a4ce0ba + d39abed commit b139836Copy full SHA for b139836
browser.js
@@ -39,7 +39,8 @@ exports.colors = [
39
40
function useColors() {
41
// is webkit? http://stackoverflow.com/a/16459606/376773
42
- return ('WebkitAppearance' in document.documentElement.style) ||
+ // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
43
+ return (typeof document !== 'undefined' && 'WebkitAppearance' in document.documentElement.style) ||
44
// is firebug? http://stackoverflow.com/a/398120/376773
45
(window.console && (console.firebug || (console.exception && console.table))) ||
46
// is firefox >= v31?
0 commit comments