Skip to content

Commit

Permalink
Add support for file:// urls. Fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
auchenberg committed Feb 10, 2019
1 parent 616cc55 commit e71f342
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/url-input/url-input.tsx
Expand Up @@ -75,7 +75,7 @@ class UrlInput extends React.Component<any, IUrlInputState> {
// Enter

let url = this.state.url;
let schemeRegex = /^(https?|about|chrome):/;
let schemeRegex = /^(https?|about|chrome|file):/;

if (!url.match(schemeRegex)) {
url = 'http://' + this.state.url;
Expand Down

0 comments on commit e71f342

Please sign in to comment.