@@ -137,29 +137,29 @@ chrome.runtime.onConnect.addListener(port => {
137137 const { action, payload, tabId } = msg ;
138138 switch ( action ) {
139139 case 'import' : // create a snapshot property on tabId and set equal to tabs object
140- // gabi :: may need do something like filter payload from stateless
140+ // may need do something like filter payload from stateless
141141 tabsObj [ tabId ] . snapshots = payload ;
142142 return true ;
143143 case 'emptySnap' :
144- // gabi :: activate empty mode
144+ // activates empty mode
145145 tabsObj [ tabId ] . mode . empty = true ;
146- // gabi :: record snapshot of page initial state
146+ // records snapshot of page initial state
147147 tabsObj [ tabId ] . initialSnapshot . push ( tabsObj [ tabId ] . snapshots [ 0 ] ) ;
148- // gabi :: reset snapshots to page last state recorded
148+ // reset snapshots to page last state recorded
149149 tabsObj [ tabId ] . snapshots = [ tabsObj [ tabId ] . snapshots [ tabsObj [ tabId ] . snapshots . length - 1 ] ] ;
150- // gabi :: record hierarchy of page initial state
150+ // records hierarchy of page initial state
151151 tabsObj [ tabId ] . initialHierarchy = { ...tabsObj [ tabId ] . hierarchy , children : [ ] } ;
152- // gabi :: reset hierarchy
152+ // resets hierarchy
153153 tabsObj [ tabId ] . hierarchy . children = [ ] ;
154- // gabi :: reset hierarchy to page last state recorded
154+ // resets hierarchy to page last state recorded
155155 tabsObj [ tabId ] . hierarchy . stateSnapshot = { ...tabsObj [ tabId ] . snapshots [ 0 ] } ;
156- // gabi :: reset currLocation to page last state recorded
156+ // resets currLocation to page last state recorded
157157 tabsObj [ tabId ] . currLocation = tabsObj [ tabId ] . hierarchy ;
158- // gabi :: reset index
158+ // resets index
159159 tabsObj [ tabId ] . index = 0 ;
160- // gabi :: reset currParent plus current state
160+ // resets currParent plus current state
161161 tabsObj [ tabId ] . currParent = 1 ;
162- // gabi :: reset currBranch
162+ // resets currBranch
163163 tabsObj [ tabId ] . currBranch = 0 ;
164164 return true ;
165165 case 'setLock' :
0 commit comments