We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13e1d06 commit b3ea123Copy full SHA for b3ea123
1 file changed
src/browser.js
@@ -49,6 +49,11 @@ function useColors() {
49
return true;
50
}
51
52
+ // Internet Explorer and Edge do not support colors.
53
+ if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
54
+ return false;
55
+ }
56
+
57
// is webkit? http://stackoverflow.com/a/16459606/376773
58
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
59
return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) ||
0 commit comments