mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
fixed tabs
This commit is contained in:
parent
d7d305ff60
commit
292a54e045
@ -42,11 +42,13 @@ RED.nodes.registerType("libnotify",LibnotifyNode);
|
|||||||
|
|
||||||
LibnotifyNode.send = function(self, msg) {
|
LibnotifyNode.send = function(self, msg) {
|
||||||
var title = self.title;
|
var title = self.title;
|
||||||
|
|
||||||
if (msg instanceof Error) {
|
if (msg instanceof Error) {
|
||||||
title += " [ERROR]: ";
|
title += " [ERROR]: ";
|
||||||
} else if (typeof msg === 'object') {
|
} else if (typeof msg === 'object') {
|
||||||
title += " [OBJECT]: ";
|
title += " [OBJECT]: ";
|
||||||
}
|
}
|
||||||
|
|
||||||
msg = msg.toString();
|
msg = msg.toString();
|
||||||
|
|
||||||
if (msg.length > self.maxlength) {
|
if (msg.length > self.maxlength) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user