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

Add support for happy-dom@v13 close() function #4930

Closed
4 tasks done
capricorn86 opened this issue Jan 11, 2024 · 0 comments · Fixed by #4931
Closed
4 tasks done

Add support for happy-dom@v13 close() function #4930

capricorn86 opened this issue Jan 11, 2024 · 0 comments · Fixed by #4931

Comments

@capricorn86
Copy link
Contributor

Clear and concise description of the problem

Happy DOM has release v13 which has support for window.close(). This is also the new recommended way by Happy DOM to close down the environment.

Suggested solution

If window.close() is defined call await window.happyDOM.abort() and then window.close().

Fallback to the current way of closing down the environment if window.close() is not defined.

Alternative

No response

Additional context

No response

Validations

@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant