File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -366,11 +366,9 @@ chrome.runtime.onConnect.addListener((port) => {
366366 ...tabsObj [ tabId ] . snapshots [ 0 ] ,
367367 } ;
368368 tabsObj [ tabId ] . axSnapshots = [
369- JSON . parse ( JSON . stringify ( tabsObj [ tabId ] . axSnapshots [ tabsObj [ tabId ] . currLocation . index ] ) ) ,
369+ tabsObj [ tabId ] . axSnapshots [ tabsObj [ tabId ] . currLocation . index ] ,
370370 ] ; // resets axSnapshots to current page state
371- tabsObj [ tabId ] . hierarchy . axSnapshot = JSON . parse (
372- JSON . stringify ( tabsObj [ tabId ] . axSnapshots [ 0 ] ) ,
373- ) ; // resets hierarchy to ax tree of current page state
371+ tabsObj [ tabId ] . hierarchy . axSnapshot = tabsObj [ tabId ] . axSnapshots [ 0 ] ; // resets hierarchy to ax tree of current page state
374372 tabsObj [ tabId ] . index = 1 ; //reset index
375373 tabsObj [ tabId ] . currParent = 0 ; // reset currParent
376374 tabsObj [ tabId ] . currBranch = 1 ; // reset currBranch
You can’t perform that action at this time.
0 commit comments