Skip to content

Fix event listener when URL is object#519

Merged
barryvdh merged 1 commit intophp-debugbar:masterfrom
danilopinotti:master
Feb 4, 2023
Merged

Fix event listener when URL is object#519
barryvdh merged 1 commit intophp-debugbar:masterfrom
danilopinotti:master

Conversation

@danilopinotti
Copy link
Copy Markdown
Contributor

@danilopinotti danilopinotti commented Jan 25, 2023

Sometimes, when we are using TS in project, the event listener receives a URL object instead string:
https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts#L17144

When this happens, the following error appears:
image

The code changed in this PR prevents this error.

@barryvdh barryvdh merged commit cd5e33f into php-debugbar:master Feb 4, 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.

2 participants