Skip to content

Commit

Permalink
Updated docs to request api status from relative path.
Browse files Browse the repository at this point in the history
  • Loading branch information
nero120 committed Jul 19, 2018
1 parent 3985577 commit 09be000
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions dist/docs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/docs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class DocsPage {

// Display current status and version for this xBrowserSync service
try {
const response = await fetch('/info');
const response = await fetch(`${location.pathname}info`);
if (!response.ok) {
throw new Error(response.statusText);
}
Expand Down

0 comments on commit 09be000

Please # to comment.