Skip to content

Commit

Permalink
Merge pull request #752 from oyerli/patch-1
Browse files Browse the repository at this point in the history
Unnecessary MozWebSocket in the WebSocket demo
  • Loading branch information
bdarnell committed Apr 24, 2013
2 parents 5491685 + 449652b commit 13ee29d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions demos/websocket/static/chat.js
Expand Up @@ -51,11 +51,7 @@ var updater = {

start: function() {
var url = "ws://" + location.host + "/chatsocket";
if ("WebSocket" in window) {
updater.socket = new WebSocket(url);
} else {
updater.socket = new MozWebSocket(url);
}
updater.socket = new WebSocket(url);
updater.socket.onmessage = function(event) {
updater.showMessage(JSON.parse(event.data));
}
Expand Down

0 comments on commit 13ee29d

Please sign in to comment.