File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
src/browser/extension/inject Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ window.devToolsInit = function(store) {
77 let timeout = { id : null , last : 0 } ;
88
99 function doChange ( init ) {
10- let state = store . liftedStore . getState ( ) ;
10+ const state = store . liftedStore . getState ( ) ;
1111 if ( options . limit && state . currentStateIndex > options . limit ) {
1212 store . liftedStore . dispatch ( { type : COMMIT , timestamp : Date . now ( ) } ) ;
13- state = store . liftedStore . getState ( ) ;
13+ return ;
1414 }
1515 window . postMessage ( {
1616 payload : options . serialize ? stringify ( state ) : state ,
@@ -49,13 +49,9 @@ window.devToolsInit = function(store) {
4949 if ( message . type === ACTION ) {
5050 timeout . last = 0 ;
5151 store . liftedStore . dispatch ( message . payload ) ;
52- }
53-
54- else if ( message . type === UPDATE ) {
52+ } else if ( message . type === UPDATE ) {
5553 onChange ( ) ;
56- }
57-
58- else if ( message . type === OPTIONS ) {
54+ } else if ( message . type === OPTIONS ) {
5955 options = message . options ;
6056 }
6157
You can’t perform that action at this time.
0 commit comments