mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Added support for msg.html (#773)
This commit is contained in:
parent
fabd3753b4
commit
b87488df6d
@ -82,6 +82,7 @@
|
|||||||
<p><code>msg.attachment</code>: attach an image (Buffer or file path)</p>
|
<p><code>msg.attachment</code>: attach an image (Buffer or file path)</p>
|
||||||
<p><code>msg.url</code>: to add a web address</p>
|
<p><code>msg.url</code>: to add a web address</p>
|
||||||
<p><code>msg.url_title</code>: to add a url title if not already set in the properties</p>
|
<p><code>msg.url_title</code>: to add a url title if not already set in the properties</p>
|
||||||
|
<p><code>msg.html</code>: set to true or 1 if message is HTML formatted
|
||||||
<p><code>msg.sound</code>: set the notification sound, <i><a href="https://pushover.net/api#sounds" target="_new">see the available options</a></i></p>
|
<p><code>msg.sound</code>: set the notification sound, <i><a href="https://pushover.net/api#sounds" target="_new">see the available options</a></i></p>
|
||||||
<p>Uses Pushover. See <i><a href="https://pushover.net" target="_new">this link</a></i> for more details.</p>
|
<p>Uses Pushover. See <i><a href="https://pushover.net" target="_new">this link</a></i> for more details.</p>
|
||||||
</script>
|
</script>
|
||||||
|
@ -37,7 +37,7 @@ module.exports = function(RED) {
|
|||||||
var sound = node.sound || msg.sound || null;
|
var sound = node.sound || msg.sound || null;
|
||||||
var url = node.url || msg.url || null;
|
var url = node.url || msg.url || null;
|
||||||
var url_title = node.url_title || msg.url_title || null;
|
var url_title = node.url_title || msg.url_title || null;
|
||||||
var html = node.html || false;
|
var html = node.html || msg.html || false;
|
||||||
var attachment = msg.attachment || null;
|
var attachment = msg.attachment || null;
|
||||||
if (isNaN(pri)) {pri=0;}
|
if (isNaN(pri)) {pri=0;}
|
||||||
if (pri > 2) {pri = 2;}
|
if (pri > 2) {pri = 2;}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user