1
0
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:
JsBergbau 2021-03-17 22:07:35 +01:00 committed by GitHub
parent fabd3753b4
commit b87488df6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -82,6 +82,7 @@
<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_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>Uses Pushover. See <i><a href="https://pushover.net" target="_new">this link</a></i> for more details.</p>
</script>

View File

@ -37,7 +37,7 @@ module.exports = function(RED) {
var sound = node.sound || msg.sound || null;
var url = node.url || msg.url || 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;
if (isNaN(pri)) {pri=0;}
if (pri > 2) {pri = 2;}