Skip to content

Commit 3483393

Browse files
committed
New version
1 parent 70e01b4 commit 3483393

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jderobot-ide-interface",
3-
"version": "0.2.07",
3+
"version": "0.2.08",
44
"main": "dist/main.js",
55
"typings": "dist/index.d.ts",
66
"files": [

src/components/VncViewer/VncViewer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,16 @@ const enabled = (state?: string): boolean => {
2222

2323
const VncViewer = ({
2424
commsManager,
25+
ip,
2526
port,
2627
}: {
2728
commsManager: CommsManager | null;
29+
ip?: string;
2830
port: number;
2931
}) => {
3032
const theme = useTheme();
3133
const [state, setState] = useState<string | undefined>(
32-
commsManager?.getState(),
34+
commsManager?.getState()
3335
);
3436

3537
const updateState = (e: any) => {
@@ -50,7 +52,7 @@ const VncViewer = ({
5052
<StyledVNCScreen
5153
title="VNC viewer"
5254
id={"vnc-viewer"}
53-
src={`http://127.0.0.1:${port}/vnc.html?resize=remote&autoconnect=true&reconnect=true`}
55+
src={`http://${ip ? ip : "127.0.0.1"}:${port}/vnc.html?resize=remote&autoconnect=true&reconnect=true`}
5456
/>
5557
) : (
5658
<StyledVNCViewerLoader>

0 commit comments

Comments
 (0)