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

Fixed: WeakMap TypeError on 0 height iframes #1276

Merged
merged 6 commits into from
Jun 24, 2024
Merged

Conversation

davidjbradshaw
Copy link
Owner

@davidjbradshaw davidjbradshaw commented Jun 24, 2024

Prevent TypeError on WeakMap when iframe has 0 height, by setting documentElement as the based sized element, instead of leaving it as undefined. This also gives a small perf improvement on larger pages.

packages/child/index.js Fixed Show fixed Hide fixed
@davidjbradshaw davidjbradshaw changed the title Fixed: WeakMap error on 0 height iframes Fixed: WeakMap TypeError on 0 height iframes Jun 24, 2024
@davidjbradshaw davidjbradshaw merged commit 0a11545 into master Jun 24, 2024
4 checks passed
@davidjbradshaw davidjbradshaw deleted the weakMapFix branch June 24, 2024 19:10
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