Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
line length
Browse files Browse the repository at this point in the history
  • Loading branch information
chisler committed May 12, 2017
1 parent 72313b7 commit aac29c3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions backend/installGlobalHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,11 +187,13 @@ function installGlobalHook(window: Object) {
var id = Math.random().toString(16).slice(2);
hook._renderers[id] = renderer;
var duplicatedReact = detectDuplicatedReact(hook._renderers);
// FIXME: Do we actually need to report buildType of any other renderer than ReactDOM?
// Currently we overwrite buildType with any consequently injected renderer's type
var reactBuildType = duplicatedReact ? 'duplicated' : detectReactBuildType(renderer);
// FIXME: Do we need to report buildType of smth other than ReactDOM?
// Currently we overwrite buildType with each injected renderer's type
var reactBuildType = duplicatedReact
? "duplicated"
: detectReactBuildType(renderer);

hook.emit('renderer', {id, renderer, reactBuildType});
hook.emit("renderer", { id, renderer, reactBuildType });
return id;
},
_listeners: {},
Expand Down

0 comments on commit aac29c3

Please sign in to comment.