@@ -237,29 +237,29 @@ chrome.runtime.onMessage.addListener((request, sender) => {
237237 // dont remove snapshots if persisting
238238 if ( ! persist ) {
239239 if ( empty ) {
240- // gabi :: reset snapshots to page initial state recorded when empted
240+ // resets snapshots to page initial state recorded when emptied
241241 tabsObj [ tabId ] . snapshots = tabsObj [ tabId ] . initialSnapshot ;
242- // gabi :: reset hierarchy to page initial state recorded when empted
242+ // resets hierarchy to page initial state recorded when emptied
243243 tabsObj [ tabId ] . hierarchy = tabsObj [ tabId ] . initialHierarchy ;
244244 } else {
245- // gabi :: reset snapshots to page initial state
245+ // resets snapshots to page initial state
246246 tabsObj [ tabId ] . snapshots . splice ( 1 ) ;
247- // gabi :: reset hierarchy to page initial state
247+ // checks if hierarchy before reset
248248 if ( tabsObj [ tabId ] . hierarchy ) {
249- // test
249+ // resets hierarchy to page initial state
250250 tabsObj [ tabId ] . hierarchy . children = [ ] ;
251- // gabi :: reset currParent plus current state
251+ // resets currParent plus current state
252252 tabsObj [ tabId ] . currParent = 1 ;
253253 } else {
254- // gabi :: reset currParent
254+ // resets currParent
255255 tabsObj [ tabId ] . currParent = 0 ;
256256 }
257257 }
258- // gabi :: reset currLocation to page initial state
258+ // resets currLocation to page initial state
259259 tabsObj [ tabId ] . currLocation = tabsObj [ tabId ] . hierarchy ;
260- // gabi :: reset index
260+ // resets index
261261 tabsObj [ tabId ] . index = 0 ;
262- // gabi :: reset currBranch
262+ // resets currBranch
263263 tabsObj [ tabId ] . currBranch = 0 ;
264264
265265 // send a message to devtools
0 commit comments