From 211603448e63795185ed58ef1d8663b7c130118c Mon Sep 17 00:00:00 2001 From: Dave Conway-Jones Date: Wed, 4 Sep 2019 23:29:53 +0200 Subject: [PATCH] ready for publish as 2.1.0 --- worldmap.html | 2 +- worldmap.js | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/worldmap.html b/worldmap.html index 331519b..f636cf5 100644 --- a/worldmap.html +++ b/worldmap.html @@ -434,7 +434,7 @@ then by default ⌘⇧m - ctrl-shift-m will load the m }); } else { - console.log("ui_worldmap: Node-RED not found."); + console.log("ui_worldmap: Node-RED-Dashboard not found."); } }); diff --git a/worldmap.js b/worldmap.js index 636a2ae..8a685b4 100644 --- a/worldmap.js +++ b/worldmap.js @@ -154,8 +154,7 @@ module.exports = function(RED) { var ui = undefined; try { ui = RED.require("node-red-dashboard")(RED); - - if(ui) { + if (ui) { function UIWorldMap(config) { try { var node = this; @@ -192,17 +191,14 @@ module.exports = function(RED) { console.log(e); } node.on("close", function() { - if (done) { - done(); - } + if (done) { done(); } }); } RED.nodes.registerType("ui_worldmap", UIWorldMap); } } catch(e) { - RED.log.info("Node-RED Dashboard not found."); - RED.log.info("ui_worldmap not installed."); + RED.log.info("Node-RED Dashboard not found - ui_worldmap not installed."); } var WorldMapIn = function(n) {