From 3addd32b36cc92fbf01eb10360feb8ce1f8488e2 Mon Sep 17 00:00:00 2001 From: machenmusik Date: Fri, 21 Apr 2023 02:37:46 -0400 Subject: [PATCH] Use current host in landing page (#1792) Update WebSocketUrlField.jsx --- nerfstudio/viewer/app/src/modules/WebSocketUrlField.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nerfstudio/viewer/app/src/modules/WebSocketUrlField.jsx b/nerfstudio/viewer/app/src/modules/WebSocketUrlField.jsx index f93b528fc..d25b8ba2a 100644 --- a/nerfstudio/viewer/app/src/modules/WebSocketUrlField.jsx +++ b/nerfstudio/viewer/app/src/modules/WebSocketUrlField.jsx @@ -29,6 +29,8 @@ export default function WebSocketUrlField() { } }; + const currentHost = `${window.location.protocol}//${window.location.host}`; + return (
- viewer.nerf.studio?websocket_url={websocket_url} + {currentHost}?websocket_url={websocket_url}
);