ready for publish as 2.1.0
This commit is contained in:
parent
76423e11cd
commit
211603448e
@ -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>
|
||||
|
10
worldmap.js
10
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user