mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-15 04:13:57 +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 (
|
||||
<div>
|
||||
<TextField
|
||||
@@ -42,7 +44,7 @@ export default function WebSocketUrlField() {
|
||||
helperText={testWebSocket(websocket_url) ? 'Invalid websocket URL' : ''}
|
||||
/>
|
||||
<Link href={`/?websocket_url=${websocket_url}`}>
|
||||
viewer.nerf.studio?websocket_url={websocket_url}
|
||||
{currentHost}?websocket_url={websocket_url}
|
||||
</Link>
|
||||
</div>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user