Skip to content

Commit

Permalink
Merge pull request #6 from chrishutchinson/feature/addSchemeToHostname
Browse files Browse the repository at this point in the history
Missed a URL
  • Loading branch information
Chris Hutchinson committed Dec 16, 2018
2 parents 4ef836b + 49c9fce commit cc8cecc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/client/src/components/HostnameInput/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface HostnameInputState {
const testHostname = (hostname: string, silentMode: boolean = true) =>
new Promise((resolve, reject) => {
const timeout = setTimeout(reject, 10000);
fetch(`http://${hostname}/api/v1/connect${silentMode ? "/silent" : ""}`)
fetch(`${hostname}/api/v1/connect${silentMode ? "/silent" : ""}`)
.then(res => {
if (res.status !== 200) throw new Error(res.statusText);
clearTimeout(timeout);
Expand Down

0 comments on commit cc8cecc

Please sign in to comment.