Skip to content

Commit 1271a22

Browse files
committed
added axtree console.log on connect too
1 parent 2fadabf commit 1271a22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/extension/background.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,19 @@ chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
415415
}),
416416
);
417417
}
418+
chrome.debugger.attach({ tabId: tabId }, '1.3', () => {
419+
chrome.debugger.sendCommand({ tabId: tabId }, 'Accessibility.enable', () => {
420+
chrome.debugger.sendCommand(
421+
{ tabId: tabId },
422+
'Accessibility.getFullAXTree',
423+
{},
424+
(response) => {
425+
console.log(response);
426+
chrome.debugger.detach({ tabId: tabId });
427+
},
428+
);
429+
});
430+
});
418431
break;
419432
}
420433

0 commit comments

Comments
 (0)