Node tips added
This commit is contained in:
parent
4db7b2aff3
commit
e0bb5ea69d
@ -30,8 +30,10 @@
|
||||
<label for="node-input-number"><i class="fa fa-tag"></i> Number</label>
|
||||
<input type="text" id="node-input-number" placeholder="Mobile Number..">
|
||||
</div>
|
||||
<p>Don't forget to mention international dialing code befor your number.
|
||||
Number must be in format like `+11 99999 99999` without any space</p>
|
||||
<div class="form-tips">
|
||||
<p>Don't forget to mention international dialing code befor your number.
|
||||
Number must be in format like <b>+11 99999 99999</b> without any space</p>
|
||||
</div>
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@ -3,7 +3,9 @@ module.exports = function(RED) {
|
||||
RED.nodes.createNode(this,config);
|
||||
var node = this;
|
||||
node.number = config.number;
|
||||
node.number = this.number.includes('@c.us') ? this.number : `${this.number}@c.us`;
|
||||
node.number = node.number.match(/\d+/);
|
||||
//node.number = this.number.includes('@c.us') ? this.number : `${this.number}@c.us`;
|
||||
node.number = `${node.number}@c.us`;
|
||||
var whatsappLinkNode = RED.nodes.getNode(config.whatsappLink);
|
||||
node.waClient = whatsappLinkNode.client;
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
<label for="node-config-input-cName"><i class="fa fa-bookmark"></i> Host</label>
|
||||
<input type="text" id="node-config-input-cName">
|
||||
</div>
|
||||
<div>
|
||||
<p> Thats sit. you don't have to change any thing here just click the ok
|
||||
button and proceed. Name can be update if required but with no-space.</p>
|
||||
<div class="form-tips">
|
||||
<p> Thats sit. you don't have to change any thing here just <b>click the ok
|
||||
button</b> and proceed. Name can be update if required but with no-space.</p>
|
||||
</div>
|
||||
</script>
|
||||
Loading…
x
Reference in New Issue
Block a user