55
66import type * as Common from '../../core/common/common.js' ;
77import * as i18n from '../../core/i18n/i18n.js' ;
8- import * as Root from '../../core/root/root.js' ;
98import * as SDK from '../../core/sdk/sdk.js' ;
109import type * as Protocol from '../../generated/protocol.js' ;
1110import * as UI from '../../ui/legacy/legacy.js' ;
@@ -17,10 +16,6 @@ import {FuseboxWindowTitleManager} from './FuseboxWindowTitleManager.js';
1716const { html, render} = Lit ;
1817
1918const UIStrings = {
20- /**
21- * @description Message for the "settings changed" banner shown when a reload is required for the Network panel.
22- */
23- reloadRequiredForNetworkPanelMessage : 'The Network panel is now available for dogfooding. Please reload to access it.' ,
2419 /**
2520 * @description Title shown when Network inspection is disabled due to multiple React Native hosts.
2621 */
@@ -79,16 +74,12 @@ export class FuseboxFeatureObserver implements
7974 #handleMetadataUpdated(
8075 event : Common . EventTarget . EventTargetEvent < Protocol . ReactNativeApplication . MetadataUpdatedEvent > ) : void {
8176 // eslint-disable-next-line @typescript-eslint/naming-convention
82- const { unstable_isProfilingBuild, unstable_networkInspectionEnabled } = event . data ;
77+ const { unstable_isProfilingBuild} = event . data ;
8378
8479 if ( unstable_isProfilingBuild ) {
8580 FuseboxWindowTitleManager . instance ( ) . setSuffix ( '[PROFILING]' ) ;
8681 this . #hideUnsupportedFeaturesForProfilingBuilds( ) ;
8782 }
88-
89- if ( unstable_networkInspectionEnabled ) {
90- this . #ensureNetworkPanelEnabled( ) ;
91- }
9283 }
9384
9485 #handleSystemStateChanged(
@@ -127,21 +118,6 @@ export class FuseboxFeatureObserver implements
127118 } ) ;
128119 }
129120
130- #ensureNetworkPanelEnabled( ) : void {
131- if ( Root . Runtime . experiments . isEnabled ( Root . Runtime . ExperimentName . ENABLE_NETWORK_PANEL ) ) {
132- return ;
133- }
134-
135- Root . Runtime . experiments . setEnabled (
136- Root . Runtime . ExperimentName . ENABLE_NETWORK_PANEL ,
137- true ,
138- ) ;
139-
140- UI . InspectorView ?. InspectorView ?. instance ( ) ?. displayReloadRequiredWarning (
141- i18nString ( UIStrings . reloadRequiredForNetworkPanelMessage ) ,
142- ) ;
143- }
144-
145121 #disableSingleHostOnlyFeatures( ) : void {
146122 if ( this . #singleHostFeaturesDisabled) {
147123 return ;
0 commit comments