something

This commit is contained in:
Joel Einbinder 2020-01-14 16:38:49 -08:00
parent 59d9d6c375
commit 7530007466
2 changed files with 2 additions and 2 deletions

View file

@ -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];