Skip to content

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

Merged
a7ul merged 1 commit into
nodegui:masterfrom
NinZine:windows-image
Oct 14, 2021
Merged

a7ul merged 1 commit into
nodegui:masterfrom
NinZine:windows-image

Conversation

@NinZine

@NinZine NinZine commented Oct 14, 2021

Copy link
Copy Markdown
Contributor

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

NinZine commented Oct 14, 2021

Copy link
Copy Markdown
Contributor Author

Fixes #358

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

a7ul commented Oct 14, 2021

Copy link
Copy Markdown
Collaborator

Thanks @NinZine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants