Browse Source

Formatting

master
Chimo 5 years ago
parent
commit
a6cf89cf60
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      js/websockets.js

+ 3
- 3
js/websockets.js View File

@ -18,7 +18,7 @@
};
ws.onopen = function( /*event*/ ) {
console.log( "connection established" );
console.log( "connection established" );
};
ws.onerror = function( /*event*/ ) {
@ -32,8 +32,8 @@
console.log( "WebSocket connection closed" + closedDetails );
console.log( "Code: " + event.code + " ( see: https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent )" );
// Don't print reason if it's an empty string
if ( reason === "" ) {
// Don't print reason if we don't have one
if ( reason ) {
console.log( "Reason: " + event.reason );
}
};


Loading…
Cancel
Save