Skip to content

Commit a2534e8

Browse files
authored
Merge pull request #113 from vpython/jcoady-patch-2
Update glowcommlab.js
2 parents 4ac6b16 + d457412 commit a2534e8

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

labextension/vpython/src/glowcommlab.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ export function createWebsocket(msg, serviceUrl) {
4040
var uri = msg.content.data.wsuri
4141
var url;
4242

43-
if (document.location.hostname.includes("localhost")){
44-
url = "ws://localhost:" + port + uri;
45-
}
46-
else {
47-
url = serviceUrl + port + uri;
48-
}
43+
url = serviceUrl + port + uri;
4944
ws = new WebSocket(url);
5045
ws.binaryType = "arraybuffer";
5146

0 commit comments

Comments
 (0)