Revert moving out setupDevtools call
Reviewed By: menglu Differential Revision: D2609340 fb-gh-sync-id: 3b27b3e18805660bd19ae705916ce4e51120f7f3
This commit is contained in:
parent
7021918fe5
commit
9bfadb7e1e
|
@ -178,13 +178,6 @@ function setUpNumber() {
|
|||
Number.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -(Math.pow(2, 53) - 1);
|
||||
}
|
||||
|
||||
function setUpDevTools() {
|
||||
if (__DEV__ && !window.document) {
|
||||
var setupDevtools = require('setupDevtools');
|
||||
setupDevtools();
|
||||
}
|
||||
}
|
||||
|
||||
setUpProcessEnv();
|
||||
setUpRedBoxErrorHandler();
|
||||
setUpTimers();
|
||||
|
@ -197,7 +190,6 @@ setUpWebSockets();
|
|||
setUpProfile();
|
||||
setUpFlowChecker();
|
||||
setUpNumber();
|
||||
setUpDevTools();
|
||||
|
||||
// Just to make sure the JS gets packaged up. Wait until the JS environment has
|
||||
// been initialized before requiring them.
|
||||
|
|
|
@ -69,6 +69,10 @@ function renderApplication<D, P, S>(
|
|||
rootTag,
|
||||
'Expect to have a valid rootTag, instead got ', rootTag
|
||||
);
|
||||
if (__DEV__ && !window.document) {
|
||||
var setupDevtools = require('setupDevtools');
|
||||
setupDevtools();
|
||||
}
|
||||
React.render(
|
||||
<AppContainer rootTag={rootTag}>
|
||||
<RootComponent
|
||||
|
|
Loading…
Reference in New Issue