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

Fix Image.src on Windows when it is a local file #363

Merged
merged 1 commit into from
Oct 14, 2021

Conversation

NinZine
Copy link
Contributor

@NinZine NinZine commented Oct 14, 2021

new URL("C:\path\filename.png")
is treated as a valid URL, which it is not. phin subsequently tries
to fetch it, but phin and centra only supports http and https anyway.
Therefore isValidUrl will check also the protocol.

`new URL("C:\path\filename.png")`
is treated as a valid URL, which it is not. `phin` subsequently tries
to fetch it, but `phin` and `centra` only supports http and https anyway.
Therefore `isValidUrl` will check also the protocol.
@NinZine
Copy link
Contributor Author

NinZine commented Oct 14, 2021

Fixes #358

@a7ul a7ul merged commit 0574712 into nodegui:master Oct 14, 2021
@a7ul
Copy link
Collaborator

a7ul commented Oct 14, 2021

Thanks @NinZine

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