node status and headless linux issue fixed

This commit is contained in:
rawee 2022-12-25 22:33:36 +05:30
parent 5752e4c401
commit 4ff696aa4a
3 changed files with 6 additions and 3 deletions

View File

@ -6,7 +6,7 @@ module.exports = function(RED) {
var whatsappLinkNode = RED.nodes.getNode(config.whatsappLink);
node.waClient = whatsappLinkNode.client;
function SetStatus(WAStatus, color){
let SetStatus = function(WAStatus, color){
node.status({fill:color,shape:"dot",text:WAStatus});
};

View File

@ -1,6 +1,6 @@
{
"name": "node-red-contrib-whatsapp-link",
"version": "0.1.26",
"version": "0.1.27.2",
"description": "Node to send and recive whatsapp chats and group messages. | No third party APIs",
"repository": {
"type": "git",

View File

@ -15,7 +15,10 @@ module.exports = function(RED) {
authStrategy : new LocalAuth({
dataPath : whatsappLinkDir
}),
puppeteer : {headless : true }
puppeteer : {
headless : true,
args : ['--no-sandbox', '--disable-setuid-sandbox']
}
});
let WAConnect = function(){