mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
e225e14c84
commit
8919e45967
1 changed files with 14 additions and 8 deletions
|
@ -1067,7 +1067,11 @@ update_chat = function (obj) {
|
|||
}
|
||||
|
||||
// check if wrong status message
|
||||
if (obj.status == "transmitting" && obj.type == "transmit" && obj.percent < 100) {
|
||||
if (
|
||||
obj.status == "transmitting" &&
|
||||
obj.type == "transmit" &&
|
||||
obj.percent < 100
|
||||
) {
|
||||
var TimeDifference = new Date().getTime() / 1000 - obj.timestamp;
|
||||
if (TimeDifference > 21600) {
|
||||
//Six hours
|
||||
|
@ -1292,14 +1296,14 @@ update_chat = function (obj) {
|
|||
getSetUserSharedFolder(selected_callsign);
|
||||
if (selected_callsign.startsWith("BC-")) {
|
||||
document
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 16);
|
||||
//console.log("Setting max message size to 16")
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 16);
|
||||
//console.log("Setting max message size to 16")
|
||||
} else {
|
||||
document
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 524288);
|
||||
//console.log("Setting max message size to big#")
|
||||
.getElementById("chatModuleMessage")
|
||||
.setAttribute("maxlength", 524288);
|
||||
//console.log("Setting max message size to big#")
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -2784,7 +2788,9 @@ function checkForWaitingMessages(dxcall) {
|
|||
},
|
||||
})
|
||||
.then(function (result) {
|
||||
console.log("Found " + result.docs.length + " messages waiting for " + dxcall)
|
||||
console.log(
|
||||
"Found " + result.docs.length + " messages waiting for " + dxcall,
|
||||
);
|
||||
// handle result
|
||||
if (result.docs.length > 0) {
|
||||
// only want to process the first available item object, then return
|
||||
|
|
Loading…
Reference in a new issue