Skip to content

Handle or silence "Invalid URL" errors #690

Closed Answered by capricorn86
Codex- asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Codex-!

As @silvenon said, you will have to set the page URL if you want to use relative URL:s (e.g. window.location.href = 'https://localhost:3000');

In v10.0.0 of Happy DOM a fix was released that catches errors and outputs them to the console instead of letting them be thrown which caused script execution to stop.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@silvenon
Comment options

@capricorn86
Comment options

Answer selected by capricorn86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants