electron-window
electron-window copied to clipboard
Added support for file urls with a file-protocol
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