@@ -24,7 +24,6 @@ import {
24
24
initialize as setupTraceUpdates ,
25
25
toggleEnabled as setTraceUpdatesEnabled ,
26
26
} from './views/TraceUpdates' ;
27
- import { patch as patchConsole } from './console' ;
28
27
import { currentBridgeProtocol } from 'react-devtools-shared/src/bridge' ;
29
28
30
29
import type { BackendBridge } from 'react-devtools-shared/src/bridge' ;
@@ -36,7 +35,6 @@ import type {
36
35
PathMatch ,
37
36
RendererID ,
38
37
RendererInterface ,
39
- ConsolePatchSettings ,
40
38
DevToolsHookSettings ,
41
39
} from './types' ;
42
40
import type { ComponentFilter } from 'react-devtools-shared/src/frontend/types' ;
@@ -805,7 +803,7 @@ export default class Agent extends EventEmitter<{
805
803
} ;
806
804
807
805
updateConsolePatchSettings : (
808
- settings : $ReadOnly < ConsolePatchSettings > ,
806
+ settings : $ReadOnly < DevToolsHookSettings > ,
809
807
) = > void = settings => {
810
808
// Propagate the settings, so Backend can subscribe to it and modify hook
811
809
this . emit ( 'updateHookSettings' , {
@@ -814,12 +812,6 @@ export default class Agent extends EventEmitter<{
814
812
showInlineWarningsAndErrors : settings . showInlineWarningsAndErrors ,
815
813
hideConsoleLogsInStrictMode : settings . hideConsoleLogsInStrictMode ,
816
814
} ) ;
817
-
818
- // If the frontend preferences have changed,
819
- // or in the case of React Native- if the backend is just finding out the preferences-
820
- // then reinstall the console overrides.
821
- // It's safe to call `patchConsole` multiple times.
822
- patchConsole ( settings ) ;
823
815
} ;
824
816
825
817
updateComponentFilters : ( componentFilters : Array < ComponentFilter > ) => void =
0 commit comments