File tree 1 file changed +1
-12
lines changed
packages/react-devtools-extensions/src 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -98,18 +98,7 @@ chrome.runtime.onMessage.addListener((request, sender) => {
98
98
// We use browserAction instead of pageAction because this lets us
99
99
// display a custom default popup when React is *not* detected.
100
100
// It is specified in the manifest.
101
- let reactBuildType = request . reactBuildType ;
102
- if ( sender . url . indexOf ( 'reactjs.org' ) !== - 1 ) {
103
- // Cheat: We use the development version on the website because
104
- // it is better for interactive examples. However we're going
105
- // to get misguided bug reports if the extension highlights it
106
- // as using the dev version. We're just going to special case
107
- // our own documentation and cheat. It is acceptable to use dev
108
- // version of React in React docs, but not in any other case.
109
- reactBuildType = 'production' ;
110
- }
111
-
112
- setIconAndPopup ( reactBuildType , sender . tab . id ) ;
101
+ setIconAndPopup ( request . reactBuildType , sender . tab . id ) ;
113
102
}
114
103
}
115
104
} ) ;
You can’t perform that action at this time.
0 commit comments