Node status and headless linux issue fixed

This commit is contained in:
rawee 2022-12-25 22:33:05 +05:30
parent bed8cf1ea2
commit 5752e4c401

View File

@ -6,11 +6,10 @@ module.exports = function(RED) {
var whatsappLinkNode = RED.nodes.getNode(config.whatsappLink);
node.waClient = whatsappLinkNode.client;
SetStatus("Message Send.", "green");
setTimeout(()=>{
SetStatus('Connected','green');
}, 3000)
let SetStatus = function(WAStatus, color){
node.status({fill:color,shape:"dot",text:WAStatus});
};
node.on('input', (message)=> {
if(node.gID){
try {