Skip to content

Commit 1ccf620

Browse files
committed
attempted to provide values to undefined name property when pruning the ax tree
1 parent d7d87ac commit 1ccf620

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/extension/background.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ const pruneAxTree = (axTree) => {
2929
properties,
3030
} = node;
3131

32+
// const nameString = 'No name';
33+
34+
// if (name !== undefined) {
35+
// nameString = name.value;
36+
// }
37+
3238
const axNode = {
3339
backendDOMNodeId: backendDOMNodeId,
3440
childIds: childIds,
@@ -40,6 +46,8 @@ const pruneAxTree = (axTree) => {
4046
properties: properties,
4147
};
4248

49+
console.log('axNode: ', axNode);
50+
4351
axArr.push(axNode);
4452
}
4553

0 commit comments

Comments
 (0)