1
0
Fork 0

fix(gui): improve API link example

This commit is contained in:
Sean Sube 2023-01-14 11:41:32 -06:00
parent 65f2f4d953
commit c09eb75ab4
1 changed files with 3 additions and 1 deletions

View File

@ -6,6 +6,8 @@ export interface OnnxErrorProps {
} }
export function OnnxError(props: OnnxErrorProps) { export function OnnxError(props: OnnxErrorProps) {
const linkback = location.href.replace(location.search, '');
return ( return (
<Container> <Container>
<Box sx={{ my: 4 }}> <Box sx={{ my: 4 }}>
@ -44,7 +46,7 @@ export function OnnxError(props: OnnxErrorProps) {
</Typography> </Typography>
<Typography variant='body1' gutterBottom> <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 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> </Typography>
</Stack> </Stack>
</Box> </Box>