Skip to content

Commit d17ea61

Browse files
committed
ready to merge with other feature branch toggle access to make toggle button work for accessibility tab
1 parent 6d5165e commit d17ea61

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension/background.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,9 @@ chrome.runtime.onMessage.addListener(async (request, sender, sendResponse) => {
414414
}
415415
case 'jumpToSnap': {
416416
changeCurrLocation(tabsObj[tabId], tabsObj[tabId].hierarchy, index, name);
417+
// hack to test without message from mainSlice
417418
toggleAxRecord = true;
419+
// record ax tree snapshot of the state that has now been jumped to if user did not toggle button on
418420
if (tabsObj[tabId].currLocation.axSnapshot === 'emptyAxSnap' && toggleAxRecord === true) {
419421
// add new ax snapshot to currlocation
420422
const addedAxSnap = await axRecord(tabId);

0 commit comments

Comments
 (0)