@@ -5,7 +5,7 @@ import {flushSync} from 'react-dom';
55import { createRoot } from 'react-dom/client' ;
66import Bridge from 'react-devtools-shared/src/bridge' ;
77import Store from 'react-devtools-shared/src/devtools/store' ;
8- import { IS_CHROME , IS_EDGE , getBrowserTheme , IS_FIREFOX } from '../utils' ;
8+ import { getBrowserTheme } from '../utils' ;
99import {
1010 localStorageGetItem ,
1111 localStorageSetItem ,
@@ -93,10 +93,10 @@ function createBridgeAndStore() {
9393
9494 store = new Store ( bridge , {
9595 isProfiling,
96- supportsReloadAndProfile : IS_CHROME || IS_EDGE ,
96+ supportsReloadAndProfile : __IS_CHROME__ || __IS_EDGE__ ,
9797 supportsProfiling,
9898 // At this time, the timeline can only parse Chrome performance profiles.
99- supportsTimeline : IS_CHROME ,
99+ supportsTimeline : __IS_CHROME__ ,
100100 supportsTraceUpdates : true ,
101101 } ) ;
102102
@@ -218,8 +218,8 @@ function createComponentsPanel() {
218218 }
219219
220220 chrome . devtools . panels . create (
221- IS_CHROME || IS_EDGE ? '⚛️ Components' : 'Components' ,
222- IS_EDGE ? 'icons/production.svg' : '' ,
221+ __IS_CHROME__ || __IS_EDGE__ ? '⚛️ Components' : 'Components' ,
222+ __IS_EDGE__ ? 'icons/production.svg' : '' ,
223223 'panel.html' ,
224224 createdPanel => {
225225 componentsPanel = createdPanel ;
@@ -257,8 +257,8 @@ function createProfilerPanel() {
257257 }
258258
259259 chrome . devtools . panels . create (
260- IS_CHROME || IS_EDGE ? '⚛️ Profiler' : 'Profiler' ,
261- IS_EDGE ? 'icons/production.svg' : '' ,
260+ __IS_CHROME__ || __IS_EDGE__ ? '⚛️ Profiler' : 'Profiler' ,
261+ __IS_EDGE__ ? 'icons/production.svg' : '' ,
262262 'panel.html' ,
263263 createdPanel => {
264264 profilerPanel = createdPanel ;
@@ -444,7 +444,7 @@ const debouncedOnNavigatedListener = debounce(() => {
444444chrome . devtools . network . onNavigated . addListener ( debouncedOnNavigatedListener ) ;
445445
446446// Should be emitted when browser DevTools are closed
447- if ( IS_FIREFOX ) {
447+ if ( __IS_FIREFOX__ ) {
448448 // For some reason Firefox doesn't emit onBeforeUnload event
449449 window . addEventListener ( 'unload' , performFullCleanup ) ;
450450} else {
0 commit comments