mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Prettified Code!
This commit is contained in:
parent
44e0779c68
commit
4395d08a5e
|
@ -537,7 +537,7 @@ ipcMain.on("save-file-to-folder", (event, data) => {
|
|||
// FEC iswriting received
|
||||
ipcMain.on("request-show-fec-toast-iswriting", (event, data) => {
|
||||
//win.webContents.send("action-show-fec-toast-iswriting", data);
|
||||
chat.webContents.send('action-show-feciswriting',data);
|
||||
chat.webContents.send("action-show-feciswriting", data);
|
||||
});
|
||||
|
||||
// CQ TRANSMITTING
|
||||
|
|
|
@ -472,7 +472,7 @@ ipcRenderer.on("action-update-transmission-status", (event, arg) => {
|
|||
});
|
||||
|
||||
//Render is typing message in correct chat window
|
||||
ipcRenderer.on("action-show-feciswriting",(event,arg) => {
|
||||
ipcRenderer.on("action-show-feciswriting", (event, arg) => {
|
||||
//console.log("In action-show-feciswriting");
|
||||
//console.log(arg);
|
||||
let uuid = uuidv4.toString();
|
||||
|
@ -494,19 +494,19 @@ ipcRenderer.on("action-show-feciswriting",(event,arg) => {
|
|||
let animIcon = document.getElementById("msg-" + uuid + "-icon");
|
||||
//Remove notification after about 4.5 seconds hopefully enough time before a second notification can come in
|
||||
setTimeout(function () {
|
||||
animIcon.classList="m-1 bi bi-wifi-2";
|
||||
animIcon.classList = "m-1 bi bi-wifi-2";
|
||||
}, 1000);
|
||||
setTimeout(function () {
|
||||
animIcon.classList="m-1 bi bi-wifi";
|
||||
animIcon.classList = "m-1 bi bi-wifi";
|
||||
}, 2000);
|
||||
setTimeout(function () {
|
||||
animIcon.classList="m-1 bi bi-wifi-2";
|
||||
animIcon.classList = "m-1 bi bi-wifi-2";
|
||||
}, 3000);
|
||||
setTimeout(function () {
|
||||
animIcon.classList="m-1 bi bi-wifi-1";
|
||||
animIcon.classList = "m-1 bi bi-wifi-1";
|
||||
}, 4000);
|
||||
setTimeout(() => {
|
||||
let feciw = document.getElementById("msg-" + uuid)
|
||||
let feciw = document.getElementById("msg-" + uuid);
|
||||
feciw.remove();
|
||||
}, 4500);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue