summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-06-14 09:23:34 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-06-14 09:23:34 +0200
commit8dc06305312b327972020b484c35eba08dbe2c83 (patch)
tree47c8091fee11e130518c199ad4622d4b305edd02
parent91ea36900f8363f6f94ed4c9dc7f07fbf19cad6a (diff)
Firefox >=12 uses normal ws apis.
-rw-r--r--proto.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto.js b/proto.js
index b8873fe..0630bbf 100644
--- a/proto.js
+++ b/proto.js
@@ -95,7 +95,7 @@ var socket_task;
var boards = document.getElementById("boards");
-if (BrowserDetect.browser == "Firefox") {
+if (BrowserDetect.browser == "Firefox" && BrowserDetect.version < 12) {
socket_task = new MozWebSocket(get_appropriate_ws_url(), "lws-task-protocol");
} else {
socket_task = new WebSocket(get_appropriate_ws_url(), "lws-task-protocol");