Skip to content

Added support for file urls with a file-protocol#23

Open
kloener wants to merge 1 commit intojprichardson:masterfrom
kloener:fix-file-url-with-protocol
Open

Added support for file urls with a file-protocol#23
kloener wants to merge 1 commit intojprichardson:masterfrom
kloener:fix-file-url-with-protocol

Conversation

@kloener
Copy link
Copy Markdown

@kloener kloener commented Jul 13, 2017

Hi,

I ran into an issue where a filepath with a file-protocol was invalid after args.urlWithArgs was called.

Input: args.urlWithArgs('file:///tmp/index.html', {doThat: 'ok'})
Before: file:///Users/kloener/github/electron-window/file:/tmp/index.html#%7B%22doThat%22%3A%22ok%22%7D
After: file:///tmp/index.html#%7B%22doThat%22%3A%22ok%22%7D

I simply added a check for "file://" in row 17 of lib/args.js.

regards,
Christian

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.

1 participant