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 {
console.log("ui_worldmap: Node-RED not found.");
console.log("ui_worldmap: Node-RED-Dashboard not found.");
}
});
</script>

View File

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