Browse Source

Making Codacy happy.

rfm69
Lazar Obradovic 6 years ago
parent
commit
3780eb8f50
1 changed files with 4 additions and 5 deletions
  1. +4
    -5
      code/html/custom.js

+ 4
- 5
code/html/custom.js View File

@ -1252,11 +1252,10 @@ function connect(host) {
if (websock) { websock.close(); }
websock = new WebSocket(wshost);
websock.onmessage = function(evt) {
var data = getJson(evt.data
.replace(/\n/g, "\\n")
.replace(/\r/g, "\\r")
.replace(/\t/g, "\\t"));
if (data) { processData(data); }
var data = getJson(evt.data.replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\t/g, "\\t"));
if (data) {
processData(data);
}
};
}


Loading…
Cancel
Save