Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding code to handle MozWebSocket for FF 6.

  • Loading branch information...
commit bf61e42318dfd6a70c65bc4af8b212e2da084402 1 parent 2e45b3a
@ellisonbg ellisonbg authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 IPython/frontend/html/notebook/static/js/kernel.js
View
9 IPython/frontend/html/notebook/static/js/kernel.js
@@ -20,6 +20,11 @@ var IPython = (function (IPython) {
this.shell_channel = null;
this.iopub_channel = null;
this.running = false;
+ if (typeof(WebSocket) === 'undefined') {
+ this.WebSocket = MozWebSocket
+ } else {
+ this.WebSocket = WebSocket
+ };
};
@@ -82,8 +87,8 @@ var IPython = (function (IPython) {
this.stop_channels();
var ws_url = this.ws_url + this.kernel_url;
console.log("Starting WS:", ws_url);
- this.shell_channel = new WebSocket(ws_url + "/shell");
- this.iopub_channel = new WebSocket(ws_url + "/iopub");
+ this.shell_channel = new this.WebSocket(ws_url + "/shell");
+ this.iopub_channel = new this.WebSocket(ws_url + "/iopub");
};
Please sign in to comment.
Something went wrong with that request. Please try again.