@@ -24,7 +24,6 @@ import {
2424 initialize as setupTraceUpdates ,
2525 toggleEnabled as setTraceUpdatesEnabled ,
2626} from './views/TraceUpdates' ;
27- import { patch as patchConsole } from './console' ;
2827import { currentBridgeProtocol } from 'react-devtools-shared/src/bridge' ;
2928
3029import type { BackendBridge } from 'react-devtools-shared/src/bridge' ;
@@ -36,7 +35,6 @@ import type {
3635 PathMatch ,
3736 RendererID ,
3837 RendererInterface ,
39- ConsolePatchSettings ,
4038 DevToolsHookSettings ,
4139} from './types' ;
4240import type { ComponentFilter } from 'react-devtools-shared/src/frontend/types' ;
@@ -805,7 +803,7 @@ export default class Agent extends EventEmitter<{
805803 } ;
806804
807805 updateConsolePatchSettings : (
808- settings : $ReadOnly < ConsolePatchSettings > ,
806+ settings : $ReadOnly < DevToolsHookSettings > ,
809807 ) = > void = settings => {
810808 // Propagate the settings, so Backend can subscribe to it and modify hook
811809 this . emit ( 'updateHookSettings' , {
@@ -814,12 +812,6 @@ export default class Agent extends EventEmitter<{
814812 showInlineWarningsAndErrors : settings . showInlineWarningsAndErrors ,
815813 hideConsoleLogsInStrictMode : settings . hideConsoleLogsInStrictMode ,
816814 } ) ;
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 ) ;
823815 } ;
824816
825817 updateComponentFilters : ( componentFilters : Array < ComponentFilter > ) => void =
0 commit comments