Show More
@@ -104,7 +104,9 b' var IPython = (function (IPython) {' | |||||
104 | this.kernel_id = json.kernel_id; |
|
104 | this.kernel_id = json.kernel_id; | |
105 | var ws_url = json.ws_url; |
|
105 | var ws_url = json.ws_url; | |
106 | if (ws_url.match(/wss?:\/\//) == null) { |
|
106 | if (ws_url.match(/wss?:\/\//) == null) { | |
107 | ws_url = "ws" + location.origin.substr(4) + ws_url; |
|
107 | // trailing 's' in https will become wss for secure web sockets | |
|
108 | prot = location.protocol.replace('http', 'ws') + "//"; | |||
|
109 | ws_url = prot + location.host + ws_url; | |||
108 | }; |
|
110 | }; | |
109 | this.ws_url = ws_url; |
|
111 | this.ws_url = ws_url; | |
110 | this.kernel_url = this.base_url + "/" + this.kernel_id; |
|
112 | this.kernel_url = this.base_url + "/" + this.kernel_id; |
General Comments 0
You need to be logged in to leave comments.
Login now