1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #2010 from node-red-hitachi/fix-require

Fix RED.require
This commit is contained in:
Nick O'Leary 2018-12-21 10:38:35 +00:00 committed by GitHub
commit 5fa4d227b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,9 @@
* limitations under the License. * limitations under the License.
**/ **/
var path = require("path");
var i18n = require("@node-red/util").i18n; var i18n = require("@node-red/util").i18n;
var registry;
var runtime; var runtime;
function copyObjectProperties(src,dst,copyList,blockList) { function copyObjectProperties(src,dst,copyList,blockList) {
@ -105,6 +107,7 @@ function createNodeApi(node) {
module.exports = { module.exports = {
init: function(_runtime) { init: function(_runtime) {
runtime = _runtime; runtime = _runtime;
registry = require("@node-red/registry/lib");
}, },
createNodeApi: createNodeApi createNodeApi: createNodeApi
} }