@samitouri / QOS-React-2 / commits / a4bd998edc

Update console messages regarding devtools

Jon Tewksbury committed Sep 3, 2015 at 14:16 UTC a4bd998edcc2f161610955f7c677a60f4347ac32
1 file changed +6 -4
src/renderers/dom/ReactDOM.js
+6 -4
@@ -59,10 +59,12 @@ if (__DEV__) {
59 var ExecutionEnvironment = require('ExecutionEnvironment');
60 if (ExecutionEnvironment.canUseDOM && window.top === window.self) {
61
62 - // If we're in Chrome, look for the devtools marker and provide a download
63 - // link if not installed.
64 - if (navigator.userAgent.indexOf('Chrome') > -1) {
65 - if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
62 + // First check if devtools is not installed
63 + if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined') {
64 + // If we're in Chrome or Firefox, provide a download link if not installed.
65 + if ((navigator.userAgent.indexOf('Chrome') > -1 &&
66 + navigator.userAgent.indexOf('Edge') === -1) ||
67 + navigator.userAgent.indexOf('Firefox') > -1) {
68 console.debug(
69 'Download the React DevTools for a better development experience: ' +
70 'https://fb.me/react-devtools'