ready for publish as 2.1.0

This commit is contained in:
Dave Conway-Jones 2019-09-04 23:29:53 +02:00
parent 76423e11cd
commit 211603448e
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
2 changed files with 4 additions and 8 deletions

View File

@ -434,7 +434,7 @@ then by default <code>⌘⇧m</code> - <code>ctrl-shift-m</code> will load the m
}); });
} }
else { else {
console.log("ui_worldmap: Node-RED not found."); console.log("ui_worldmap: Node-RED-Dashboard not found.");
} }
}); });
</script> </script>

View File

@ -154,8 +154,7 @@ module.exports = function(RED) {
var ui = undefined; var ui = undefined;
try { try {
ui = RED.require("node-red-dashboard")(RED); ui = RED.require("node-red-dashboard")(RED);
if (ui) {
if(ui) {
function UIWorldMap(config) { function UIWorldMap(config) {
try { try {
var node = this; var node = this;
@ -192,17 +191,14 @@ module.exports = function(RED) {
console.log(e); console.log(e);
} }
node.on("close", function() { node.on("close", function() {
if (done) { if (done) { done(); }
done();
}
}); });
} }
RED.nodes.registerType("ui_worldmap", UIWorldMap); RED.nodes.registerType("ui_worldmap", UIWorldMap);
} }
} }
catch(e) { catch(e) {
RED.log.info("Node-RED Dashboard not found."); RED.log.info("Node-RED Dashboard not found - ui_worldmap not installed.");
RED.log.info("ui_worldmap not installed.");
} }
var WorldMapIn = function(n) { var WorldMapIn = function(n) {