mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
[CodeFactor] Apply fixes
This commit is contained in:
parent
2578b2eaf0
commit
7619c5de8c
|
@ -161,19 +161,29 @@ export function eventDispatcher(data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (data["freedata"]) {
|
switch (data["freedata"]) {
|
||||||
case ("modem-message"):
|
case "modem-message":
|
||||||
switch(data["received"]){
|
switch (data["received"]) {
|
||||||
case ("BEACON"):
|
case "BEACON":
|
||||||
//Beacon received
|
//Beacon received
|
||||||
displayToast("info", "bi-broadcast", "Beacon from " + data["dxcallsign"], 5000);
|
displayToast(
|
||||||
|
"info",
|
||||||
|
"bi-broadcast",
|
||||||
|
"Beacon from " + data["dxcallsign"],
|
||||||
|
5000,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
case("QRV"):
|
case "QRV":
|
||||||
//Qrv received
|
//Qrv received
|
||||||
displayToast("success", "bi-person-raised-hand", "QRV from " + data["dxcallsign"], 5000);
|
displayToast(
|
||||||
|
"success",
|
||||||
|
"bi-person-raised-hand",
|
||||||
|
"QRV from " + data["dxcallsign"],
|
||||||
|
5000,
|
||||||
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
case ("modem-event"):
|
case "modem-event":
|
||||||
switch (data["event"]) {
|
switch (data["event"]) {
|
||||||
case "start":
|
case "start":
|
||||||
displayToast("success", "bi-arrow-left-right", "Modem started", 5000);
|
displayToast("success", "bi-arrow-left-right", "Modem started", 5000);
|
||||||
|
@ -200,13 +210,11 @@ export function eventDispatcher(data) {
|
||||||
5000,
|
5000,
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
console.warn("Unknown event message received:");
|
console.warn("Unknown event message received:");
|
||||||
console.warn(data);
|
console.warn(data);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue