mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-28 20:10:05 +08:00
1 parent
f84ad7352e
commit
3addd32b36
1 file changed
+3
-1
@@ -29,6 +29,8 @@ export default function WebSocketUrlField() {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const currentHost = `${window.location.protocol}//${window.location.host}`;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<TextField
|
<TextField
|
||||||
@@ -42,7 +44,7 @@ export default function WebSocketUrlField() {
|
|||||||
helperText={testWebSocket(websocket_url) ? 'Invalid websocket URL' : ''}
|
helperText={testWebSocket(websocket_url) ? 'Invalid websocket URL' : ''}
|
||||||
/>
|
/>
|
||||||
<Link href={`/?websocket_url=${websocket_url}`}>
|
<Link href={`/?websocket_url=${websocket_url}`}>
|
||||||
viewer.nerf.studio?websocket_url={websocket_url}
|
{currentHost}?websocket_url={websocket_url}
|
||||||
</Link>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in new issue
Block a user