something
This commit is contained in:
parent
59d9d6c375
commit
7530007466
|
|
@ -72,7 +72,7 @@ export class Accessibility {
|
||||||
interestingOnly = true,
|
interestingOnly = true,
|
||||||
root = null,
|
root = null,
|
||||||
} = options;
|
} = options;
|
||||||
const {tree, needle} = await this._getAXTree(root);
|
const {tree, needle} = await this._getAXTree(root || undefined);
|
||||||
if (!interestingOnly) {
|
if (!interestingOnly) {
|
||||||
if (root)
|
if (root)
|
||||||
return needle && serializeTree(needle)[0];
|
return needle && serializeTree(needle)[0];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue