Skip to content

Commit

Permalink
tab to space
Browse files Browse the repository at this point in the history
tab to space and indent fix
  • Loading branch information
shinriyo committed Mar 26, 2014
1 parent b5b2132 commit 142b5fb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demos/websocket/static/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ var updater = {

start: function() {
var url = "ws://" + location.host + "/chatsocket";
updater.socket = new WebSocket(url);
updater.socket.onmessage = function(event) {
updater.showMessage(JSON.parse(event.data));
}
updater.socket = new WebSocket(url);
updater.socket.onmessage = function(event) {
updater.showMessage(JSON.parse(event.data));
}
},

showMessage: function(message) {
Expand Down

0 comments on commit 142b5fb

Please sign in to comment.