We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 856eb72 commit 3deca65Copy full SHA for 3deca65
src/renderers/dom/ReactDOM.js
@@ -78,8 +78,13 @@ if (__DEV__) {
78
if ((navigator.userAgent.indexOf('Chrome') > -1 &&
79
navigator.userAgent.indexOf('Edge') === -1) ||
80
navigator.userAgent.indexOf('Firefox') > -1) {
81
+ // Firefox does not have the issue with devtools loaded over file://
82
+ var showFileUrlMessage = window.location.protocol.indexOf('http') === -1 &&
83
+ navigator.userAgent.indexOf('Firefox') === -1;
84
console.debug(
- 'Download the React DevTools for a better development experience: ' +
85
+ 'Download the React DevTools ' +
86
+ (showFileUrlMessage ? 'and use an HTTP server (instead of a file: URL) ' : '') +
87
+ 'for a better development experience: ' +
88
'https://fb.me/react-devtools'
89
);
90
}
0 commit comments