mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
refactor[react-devtools-extensions]: use globals to eliminate dead code (#27516)
Small change to eliminate dead code in builds for different browsers. Tested by inspecting production sources.
This commit is contained in:
+1
-3
@@ -1,10 +1,8 @@
|
||||
/* global chrome */
|
||||
|
||||
import {IS_FIREFOX} from '../utils';
|
||||
|
||||
// Firefox doesn't support ExecutionWorld.MAIN yet
|
||||
// equivalent logic for Firefox is in prepareInjection.js
|
||||
const contentScriptsToInject = IS_FIREFOX
|
||||
const contentScriptsToInject = __IS_FIREFOX__
|
||||
? [
|
||||
{
|
||||
id: '@react-devtools/proxy',
|
||||
|
||||
Reference in New Issue
Block a user