Skip to content

Commit 78dd524

Browse files
committed
changed some comments for clarification
1 parent 7d5bc58 commit 78dd524

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/slices/mainSlice.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const mainSlice = createSlice({
5050
const currSnapshot = tabs[currentTab].snapshots[tabs[currentTab].currLocation.index]; // current snapshot
5151
const currAxSnapshot = tabs[currentTab].axSnapshots[tabs[currentTab].currLocation.index]; // current accessibility tree snapshot
5252

53-
tabs[currentTab].hierarchy.stateSnapshot = { ...currSnapshot }; // resets hierarchy to page current snapshot
53+
tabs[currentTab].hierarchy.stateSnapshot = { ...currSnapshot }; // resets hierarchy to current snapshot
5454
tabs[currentTab].hierarchy.axSnapshot = { ...currAxSnapshot }; // resets hierarchy to current accessibility tree snapshot
5555
tabs[currentTab].hierarchy.children = []; // resets hierarchy
5656
tabs[currentTab].snapshots = [currSnapshot]; // resets snapshots to current snapshot

src/extension/background.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ chrome.runtime.onConnect.addListener((port) => {
368368
tabsObj[tabId].axSnapshots = [
369369
tabsObj[tabId].axSnapshots[tabsObj[tabId].currLocation.index],
370370
]; // resets axSnapshots to current page state
371-
tabsObj[tabId].hierarchy.axSnapshot = tabsObj[tabId].axSnapshots[0]; // resets hierarchy to ax tree of current page state
371+
tabsObj[tabId].hierarchy.axSnapshot = tabsObj[tabId].axSnapshots[0]; // resets hierarchy to accessibility tree of current page state
372372
tabsObj[tabId].index = 1; //reset index
373373
tabsObj[tabId].currParent = 0; // reset currParent
374374
tabsObj[tabId].currBranch = 1; // reset currBranch

0 commit comments

Comments
 (0)