diff --git a/chats-out.js b/chats-out.js index 125c85d..c31323d 100644 --- a/chats-out.js +++ b/chats-out.js @@ -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}); }; diff --git a/package.json b/package.json index 96ae4c6..deaaf1b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/whatsappLink.js b/whatsappLink.js index 7781358..42f436e 100644 --- a/whatsappLink.js +++ b/whatsappLink.js @@ -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(){