Skip to content

Commit

Permalink
fix: break traversal if no shadow root or parent element
Browse files Browse the repository at this point in the history
  • Loading branch information
dbajpeyi committed Nov 22, 2024
1 parent 9aa8f12 commit b8b954d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/autofill-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/autofill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/Scanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ class DefaultScanner {
if (root instanceof ShadowRoot && root.host) {
// @ts-ignore
element = root.host;
} else {
// We're in a strange state, just break out of the loop
break;
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions swift-package/Resources/assets/autofill-debug.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions swift-package/Resources/assets/autofill.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8b954d

Please sign in to comment.