Revert moving out setupDevtools call

Reviewed By: menglu

Differential Revision: D2609340

fb-gh-sync-id: 3b27b3e18805660bd19ae705916ce4e51120f7f3
This commit is contained in:
Pawel Sienkowski 2015-11-02 18:29:07 -08:00 committed by facebook-github-bot-3
parent 7021918fe5
commit 9bfadb7e1e
2 changed files with 4 additions and 8 deletions

View File

@ -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.

View File

@ -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