Prettified Code!

This commit is contained in:
DJ2LS 2023-05-17 09:06:07 +00:00 committed by GitHub Action
parent a73ce2f706
commit 74dc698d0a
2 changed files with 15 additions and 11 deletions

View file

@ -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

View file

@ -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" : "' +