@@ -27,7 +27,6 @@ import {startReactPolling} from './reactPolling';
27
27
import cloneStyleTags from './cloneStyleTags' ;
28
28
import fetchFileWithCaching from './fetchFileWithCaching' ;
29
29
import injectBackendManager from './injectBackendManager' ;
30
- import syncSavedPreferences from './syncSavedPreferences' ;
31
30
import registerEventsLogger from './registerEventsLogger' ;
32
31
import getProfilingFlags from './getProfilingFlags' ;
33
32
import debounce from './debounce' ;
@@ -103,6 +102,10 @@ function createBridgeAndStore() {
103
102
supportsClickToInspect : true ,
104
103
} ) ;
105
104
105
+ store . addListener ( 'updateConsolePatchSettings' , settings => {
106
+ chrome . storage . local . set ( settings ) ;
107
+ } ) ;
108
+
106
109
if ( ! isProfiling ) {
107
110
// We previously stored this in performCleanup function
108
111
store . profilerStore . profilingData = profilingData ;
@@ -393,10 +396,6 @@ let root = null;
393
396
394
397
let port = null ;
395
398
396
- // Re-initialize saved filters on navigation,
397
- // since global values stored on window get reset in this case.
398
- chrome . devtools . network . onNavigated . addListener ( syncSavedPreferences ) ;
399
-
400
399
// In case when multiple navigation events emitted in a short period of time
401
400
// This debounced callback primarily used to avoid mounting React DevTools multiple times, which results
402
401
// into subscribing to the same events from Bridge and window multiple times
@@ -426,5 +425,4 @@ if (__IS_FIREFOX__) {
426
425
427
426
connectExtensionPort ( ) ;
428
427
429
- syncSavedPreferences ( ) ;
430
428
mountReactDevToolsWhenReactHasLoaded ( ) ;
0 commit comments