1
0
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:
Jan Kolkmeier 2014-03-02 00:40:11 +01:00
parent d7d305ff60
commit 292a54e045

View File

@ -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) {