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) => {
366
366
...tabsObj [ tabId ] . snapshots [ 0 ] ,
367
367
} ;
368
368
tabsObj [ tabId ] . axSnapshots = [
369
- JSON . parse ( JSON . stringify ( tabsObj [ tabId ] . axSnapshots [ tabsObj [ tabId ] . currLocation . index ] ) ) ,
369
+ tabsObj [ tabId ] . axSnapshots [ tabsObj [ tabId ] . currLocation . index ] ,
370
370
] ; // 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
374
372
tabsObj [ tabId ] . index = 1 ; //reset index
375
373
tabsObj [ tabId ] . currParent = 0 ; // reset currParent
376
374
tabsObj [ tabId ] . currBranch = 1 ; // reset currBranch
You can’t perform that action at this time.
0 commit comments