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:
Ruslan Lesiutin
2023-10-16 14:54:25 +01:00
committed by GitHub
parent 309c8ad968
commit 18a9dd1c60
9 changed files with 30 additions and 32 deletions
@@ -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',