add line let dat = JSON.parse(evt.data) deleted by mistake
This commit is contained in:
parent
c3246200d0
commit
f6ca896691
@ -29,6 +29,7 @@ window.addEventListener("load", function(evt) {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
const wsOnMessageF = function (evt) {
|
const wsOnMessageF = function (evt) {
|
||||||
|
let dat = JSON.parse(evt.data)
|
||||||
if ('SOURCE_TCP' in dat) {
|
if ('SOURCE_TCP' in dat) {
|
||||||
setIndicatorsTcp(dat.SOURCE_TCP)
|
setIndicatorsTcp(dat.SOURCE_TCP)
|
||||||
if(dat.SOURCE_TCP.Orientation[0] !== 0 && dat.SOURCE_TCP.Orientation[1] !== 0 && dat.SOURCE_TCP.Orientation[2] !== 0){
|
if(dat.SOURCE_TCP.Orientation[0] !== 0 && dat.SOURCE_TCP.Orientation[1] !== 0 && dat.SOURCE_TCP.Orientation[2] !== 0){
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user