File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
front_end/entrypoints/rn_inspector Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,9 @@ import '../../panels/rn_welcome/rn_welcome-meta.js';
1616
1717import * as Host from '../../core/host/host.js' ;
1818import * as Root from '../../core/root/root.js' ;
19+ import * as SDK from '../../core/sdk/sdk.js' ;
1920import * as Main from '../main/main.js' ;
21+ import type * as InspectorBackend from '../../core/protocol_client/InspectorBackend.js' ;
2022
2123Host . RNPerfMetrics . registerPerfMetricsGlobalPostMessageHandler ( ) ;
2224
@@ -45,6 +47,24 @@ Root.Runtime.experiments.enableExperimentsByDefault([
4547 Root . Runtime . ExperimentName . REACT_NATIVE_SPECIFIC_UI ,
4648] ) ;
4749
50+ class FuseboxClientMetadataModel extends SDK . SDKModel . SDKModel < void > {
51+ constructor ( target : SDK . Target . Target ) {
52+ super ( target ) ;
53+ target . router ( ) ?. sendMessage (
54+ target . sessionId ,
55+ 'FuseboxClient' ,
56+ 'FuseboxClient.setClientMetadata' as InspectorBackend . QualifiedName ,
57+ { } ,
58+ ( ) => { } ,
59+ ) ;
60+ }
61+ }
62+
63+ SDK . SDKModel . SDKModel . register (
64+ FuseboxClientMetadataModel ,
65+ { capabilities : SDK . Target . Capability . None , autostart : true } ,
66+ ) ;
67+
4868// @ts -ignore Exposed for legacy layout tests
4969self . runtime = Root . Runtime . Runtime . instance ( { forceNew : true } ) ;
5070new Main . MainImpl . MainImpl ( ) ;
You can’t perform that action at this time.
0 commit comments