@@ -14,7 +14,7 @@ export default (state, action) =>
14
14
//console.log(tabs[currentTab]);
15
15
//console.log('properties of tabs[currentTab]:', hierarchy, snapshots, mode, intervalId, viewIndex, sliderIndex)
16
16
17
- //console.log('reducer file!', 'hierarchy:', hierarchy, 'tabs:', tabs)
17
+ //console.log('reducer file!', 'hierarchy:', hierarchy, 'tabs:', tabs)
18
18
19
19
// eslint-disable-next-line max-len
20
20
// function that finds the index in the hierarchy and extracts the name of the equivalent index to add to the post message
@@ -44,7 +44,7 @@ export default (state, action) =>
44
44
switch ( action . type ) {
45
45
// This saves the series user wants to save to chrome local storage
46
46
case types . SAVE : {
47
- console . log ( 'save action reducer!' , 'payload:' , action . payload )
47
+ console . log ( 'save action reducer!' , 'payload:' , action . payload ) ;
48
48
const { newSeries, newSeriesName } = action . payload ;
49
49
if ( ! tabs [ currentTab ] . seriesSavedStatus ) {
50
50
tabs [ currentTab ] = { ...tabs [ currentTab ] , seriesSavedStatus : 'inputBoxOpen' } ;
@@ -185,8 +185,8 @@ export default (state, action) =>
185
185
break ;
186
186
}
187
187
case types . EMPTY : {
188
- console . log ( '-----clear snapshots reducer----' )
189
- console . log ( 'state before:' , state . tabs [ currentTab ] )
188
+ console . log ( '-----clear snapshots reducer----' ) ;
189
+ console . log ( 'state before:' , state . tabs [ currentTab ] ) ;
190
190
191
191
// send msg to background script
192
192
port . postMessage ( { action : 'emptySnap' , tabId : currentTab } ) ; //communicate with background.js
@@ -220,10 +220,10 @@ export default (state, action) =>
220
220
break ;
221
221
}
222
222
case types . IMPORT : {
223
- // Log the value of tabs[currentTab].snapshots before the update
224
- console . log ( '-----import snapshots reducer----' )
225
- console . log ( 'state before:' , state . tabs [ currentTab ] )
226
- console . log ( 'action payload:' , action . payload )
223
+ // Log the value of tabs[currentTab].snapshots before the update
224
+ console . log ( '-----import snapshots reducer----' ) ;
225
+ console . log ( 'state before:' , state . tabs [ currentTab ] ) ;
226
+ console . log ( 'action payload:' , action . payload ) ;
227
227
228
228
port . postMessage ( {
229
229
action : 'import' ,
@@ -254,11 +254,8 @@ export default (state, action) =>
254
254
tabs [ currentTab ] . currBranch = savedSnapshot . Branch ;
255
255
tabs [ currentTab ] . seriesSavedStatus = false ;
256
256
257
-
258
257
//============
259
258
//tabs[currentTab].snapshots = action.payload.snapshots;
260
-
261
-
262
259
263
260
// console.log('New snapshots:', action.payload);
264
261
// console.log('updated tabs[CurrentTab].snapshots:', tabs[currentTab].snapshots)
0 commit comments