Node status and headless linux issue fixed
This commit is contained in:
parent
bed8cf1ea2
commit
5752e4c401
@ -6,11 +6,10 @@ module.exports = function(RED) {
|
|||||||
var whatsappLinkNode = RED.nodes.getNode(config.whatsappLink);
|
var whatsappLinkNode = RED.nodes.getNode(config.whatsappLink);
|
||||||
node.waClient = whatsappLinkNode.client;
|
node.waClient = whatsappLinkNode.client;
|
||||||
|
|
||||||
SetStatus("Message Send.", "green");
|
let SetStatus = function(WAStatus, color){
|
||||||
setTimeout(()=>{
|
node.status({fill:color,shape:"dot",text:WAStatus});
|
||||||
SetStatus('Connected','green');
|
};
|
||||||
}, 3000)
|
|
||||||
|
|
||||||
node.on('input', (message)=> {
|
node.on('input', (message)=> {
|
||||||
if(node.gID){
|
if(node.gID){
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user