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 {
|
else {
|
||||||
console.log("ui_worldmap: Node-RED not found.");
|
console.log("ui_worldmap: Node-RED-Dashboard not found.");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
10
worldmap.js
10
worldmap.js
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user