diff --git a/node-red-node-ui-iframe/README.md b/node-red-node-ui-iframe/README.md index 1f97668..bd23c88 100644 --- a/node-red-node-ui-iframe/README.md +++ b/node-red-node-ui-iframe/README.md @@ -26,8 +26,8 @@ menu or `url` property of an input message. `payload` property of input message specifies a data sent to the embedded page using Web messaging API. If a data from the embedded -Web page is received via Web messaging API, it is outputted as -`payload` value of outgoing message. +Web page is received via Web messaging API, it is output as the +`payload` value the of outgoing message. Example ------- diff --git a/node-red-node-ui-iframe/ui_iframe.js b/node-red-node-ui-iframe/ui_iframe.js index 59622d0..cbb1d79 100644 --- a/node-red-node-ui-iframe/ui_iframe.js +++ b/node-red-node-ui-iframe/ui_iframe.js @@ -18,7 +18,7 @@ module.exports = function(RED) { var count = 0; function HTML(config) { count++; - var id = "if"+count; + var id = "nr-db-if"+count; var url = config.url ? config.url : ""; var allow = "autoplay"; var origin = config.origin ? config.origin : "*"; @@ -83,9 +83,7 @@ module.exports = function(RED) { return { msg:msg }; }, beforeSend: function (msg, orig) { - if (orig) { - return orig.msg; - } + if (orig) { return orig.msg; } }, initController: function($scope, events) { }