File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/browser/extension/inject Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,15 @@ import configureStore from '../../../app/store/configureStore';
33import { isAllowed } from '../options/syncOptions' ;
44import notifyErrors from '../utils/notifyErrors' ;
55
6- const actionsArrToReg = ( arr ) => arr ? arr . join ( '|' ) : null ;
7-
86window . devToolsExtension = function ( config = { } ) {
97 let store = { } ;
108 if ( ! window . devToolsOptions ) window . devToolsOptions = { } ;
119
1210 let localFilter ;
1311 if ( config . actionsBlacklist || config . actionsWhitelist ) {
1412 localFilter = {
15- whitelist : actionsArrToReg ( config . actionsWhitelist ) ,
16- blacklist : actionsArrToReg ( config . actionsBlacklist )
13+ whitelist : config . actionsWhitelist && config . actionsWhitelist . join ( '|' ) ,
14+ blacklist : config . actionsBlacklist && config . actionsBlacklist . join ( '|' )
1715 } ;
1816 }
1917
@@ -168,7 +166,7 @@ window.devToolsExtension = function(config = {}) {
168166
169167 const { deserializeState, deserializeAction } = config ;
170168 store = configureStore ( next , monitorReducer , {
171- deserializeState,
169+ deserializeState,
172170 deserializeAction
173171 } ) ( reducer , initialState , enhancer ) ;
174172 init ( ) ;
You can’t perform that action at this time.
0 commit comments