Skip to content

Commit

Permalink
More missed semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
Rexios80 committed Jul 24, 2020
1 parent 15942bf commit b3d3a3f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions public/socketClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ function connect() {
socket.onmessage = function (event) {
console.log(event.data);

statusDisplay.style.display = 'none'
dataDisplay.style.display = 'block'
clearTimeout(heartbeatTimeout)
statusDisplay.style.display = 'none';
dataDisplay.style.display = 'block';
clearTimeout(heartbeatTimeout);
heartbeatTimeout = setTimeout(function () {
statusDisplay.style.display = 'block'
dataDisplay.style.display = 'none'
}, 60000) // 60 seconds
statusDisplay.style.display = 'block';
dataDisplay.style.display = 'none';
}, 60000); // 60 seconds

let data = event.data.split(':');

Expand Down

0 comments on commit b3d3a3f

Please sign in to comment.