diff --git a/client/script.js b/client/script.js index e580666..f14428b 100644 --- a/client/script.js +++ b/client/script.js @@ -66,9 +66,17 @@ socket.addEventListener("lastheard", data => { var mcall = "" + val.mycall + ""; if (val.msg1 != "") mcall += " / " + val.msg1; var rpt1 = val.rpt1.substring(0,7).trim(); - if (rpt1.substring(0,3) == "REF") rpt1 = "" + val.rpt1 + ""; + if (rpt1.substring(0,3) == "REF") { + rpt1 = "" + val.rpt1 + ""} + else { + rpt1 = val.rpt1 + } var rpt2 = val.rpt2.substring(0,7).trim(); - if (rpt2.substring(0,3) == "REF") rpt2 = "" + val.rpt2 + ""; + if (rpt2.substring(0,3) == "REF") { + rpt2 = "" + val.rpt2 + "" } + else { + rpt2 = val.rpt2 + } $("#lhtable").append("