Fix setting tacticals via message to TACTICAL
This commit is contained in:
parent
e14904e59b
commit
21d0c7cca3
@ -116,6 +116,9 @@ function handleMessage(packet) {
|
|||||||
message.data.text.split(';').map((tac_assoc) => {
|
message.data.text.split(';').map((tac_assoc) => {
|
||||||
let [call, tac] = tac_assoc.split('=', 2);
|
let [call, tac] = tac_assoc.split('=', 2);
|
||||||
if (tac) {
|
if (tac) {
|
||||||
|
if (!Object.hasOwn(trackedStations.value, call)) {
|
||||||
|
trackedStations.value[call] = {};
|
||||||
|
}
|
||||||
trackedStations.value[call].tactical = tac;
|
trackedStations.value[call].tactical = tac;
|
||||||
} else {
|
} else {
|
||||||
delete trackedStations.value[call];
|
delete trackedStations.value[call];
|
||||||
|
Loading…
Reference in New Issue
Block a user