Skip to content

Commit

Permalink
fix(gui): improve API link example
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Jan 14, 2023
1 parent 65f2f4d commit c09eb75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gui/src/components/OnnxError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ export interface OnnxErrorProps {
}

export function OnnxError(props: OnnxErrorProps) {
const linkback = location.href.replace(location.search, '');

return (
<Container>
<Box sx={{ my: 4 }}>
Expand Down Expand Up @@ -44,7 +46,7 @@ export function OnnxError(props: OnnxErrorProps) {
</Typography>
<Typography variant='body1' gutterBottom>
If you are trying to use a remote API server or an alternative port, you can put the address into the
query string, like <code>{window.location.origin}?api=http://localhost:5001</code>.
query string, like <code>{linkback}?api=http://localhost:5001</code>.
</Typography>
</Stack>
</Box>
Expand Down

0 comments on commit c09eb75

Please sign in to comment.