mirror of
https://github.com/debug-js/debug.git
synced 2026-01-25 16:42:28 +00:00
fix(browser): remove variable thats undefined in react-native
https://github.com/facebook/react-native/pull/1632
This commit is contained in:
parent
39ecd87bcc
commit
d39abeda93
@ -39,7 +39,8 @@ exports.colors = [
|
||||
|
||||
function useColors() {
|
||||
// is webkit? http://stackoverflow.com/a/16459606/376773
|
||||
return ('WebkitAppearance' in document.documentElement.style) ||
|
||||
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
||||
return (typeof document !== 'undefined' && 'WebkitAppearance' in document.documentElement.style) ||
|
||||
// is firebug? http://stackoverflow.com/a/398120/376773
|
||||
(window.console && (console.firebug || (console.exception && console.table))) ||
|
||||
// is firefox >= v31?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user