Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor document access #44

Merged
merged 1 commit into from
Jan 28, 2023
Merged

chore: refactor document access #44

merged 1 commit into from
Jan 28, 2023

Conversation

theKashey
Copy link
Owner

followup for #43

Makes usage of document explicit, Simplifies logic which spans over different hosts.

: activeElement instanceof HTMLIFrameElement && activeElement.contentWindow?.document
? getActiveElement(activeElement.contentWindow.document)
: activeElement
) as HTMLElement;
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now there is no need for separate functions to dive deeper - function just shifts from one document to another.

@theKashey theKashey merged commit 8360af1 into master Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant