node status and headless linux issue fixed
This commit is contained in:
parent
5752e4c401
commit
4ff696aa4a
@ -6,7 +6,7 @@ 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;
|
||||||
|
|
||||||
function SetStatus(WAStatus, color){
|
let SetStatus = function(WAStatus, color){
|
||||||
node.status({fill:color,shape:"dot",text:WAStatus});
|
node.status({fill:color,shape:"dot",text:WAStatus});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-whatsapp-link",
|
"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",
|
"description": "Node to send and recive whatsapp chats and group messages. | No third party APIs",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@ -15,7 +15,10 @@ module.exports = function(RED) {
|
|||||||
authStrategy : new LocalAuth({
|
authStrategy : new LocalAuth({
|
||||||
dataPath : whatsappLinkDir
|
dataPath : whatsappLinkDir
|
||||||
}),
|
}),
|
||||||
puppeteer : {headless : true }
|
puppeteer : {
|
||||||
|
headless : true,
|
||||||
|
args : ['--no-sandbox', '--disable-setuid-sandbox']
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
let WAConnect = function(){
|
let WAConnect = function(){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user