We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ac6b16 commit f5f2e05Copy full SHA for f5f2e05
vpython/vpython_libraries/glowcomm.js
@@ -36,13 +36,8 @@ IPython.notebook.kernel.comm_manager.register_target('glow',
36
} else {
37
new_uri = "ws:";
38
}
39
- if (document.location.hostname.includes("localhost")){
40
- url = "ws://localhost:" + port + uri;
41
- }
42
- else {
43
- new_uri += '//' + document.location.host + service_url;
44
- url = new_uri
45
+ new_uri += '//' + document.location.host + service_url;
+ url = new_uri
46
ws = new WebSocket(url);
47
ws.binaryType = "arraybuffer";
48
0 commit comments