mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
a73ce2f706
commit
74dc698d0a
|
@ -482,8 +482,8 @@ window.addEventListener("DOMContentLoaded", () => {
|
|||
var tnc_command = "broadcast";
|
||||
var message_type = "broadcast_transmit";
|
||||
|
||||
// slice uuid for reducing overhead
|
||||
uuid = uuid.slice(-4);
|
||||
// slice uuid for reducing overhead
|
||||
uuid = uuid.slice(-4);
|
||||
|
||||
let Data = {
|
||||
command: tnc_command,
|
||||
|
@ -2322,13 +2322,14 @@ function getSetUserInformation(selected_callsign) {
|
|||
|
||||
if (selected_callsign.startsWith("BC-")) {
|
||||
var userIcon = defaultGroupIcon;
|
||||
document.getElementById("chatModuleMessage").setAttribute("maxlength", 16);
|
||||
|
||||
document
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 16);
|
||||
} else {
|
||||
var userIcon = defaultUserIcon;
|
||||
document.getElementById("chatModuleMessage").setAttribute("maxlength", 524288);
|
||||
|
||||
|
||||
document
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 524288);
|
||||
}
|
||||
|
||||
document.getElementById("user-image-" + selected_callsign).src =
|
||||
|
@ -2390,12 +2391,15 @@ function getSetUserInformation(selected_callsign) {
|
|||
console.log(err);
|
||||
|
||||
if (selected_callsign.startsWith("BC-")) {
|
||||
document.getElementById("chatModuleMessage").setAttribute("maxlength", 16);
|
||||
document
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 16);
|
||||
var userIcon = defaultGroupIcon;
|
||||
} else {
|
||||
var userIcon = defaultUserIcon;
|
||||
document.getElementById("chatModuleMessage").setAttribute("maxlength", 524288);
|
||||
|
||||
document
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 524288);
|
||||
}
|
||||
|
||||
// Callsign list elements
|
||||
|
|
|
@ -866,7 +866,7 @@ exports.sendBroadcastChannel = function (channel, data_out, uuid) {
|
|||
split_char +
|
||||
data_out
|
||||
);
|
||||
console.log(data.length)
|
||||
console.log(data.length);
|
||||
let payload = data;
|
||||
command =
|
||||
'{"type" : "fec", "command" : "transmit", "mode": "datac4", "wakeup": "True", "payload" : "' +
|
||||
|
|
Loading…
Reference in a new issue