mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Initialise Node earlier in registry life-cycle
This commit is contained in:
parent
9524ef726a
commit
da3fbd3b62
@ -188,11 +188,11 @@ function loadNodes(dir) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function init(_settings) {
|
function init(_settings) {
|
||||||
|
Node = require("./Node");
|
||||||
settings = _settings;
|
settings = _settings;
|
||||||
}
|
}
|
||||||
|
|
||||||
function load() {
|
function load() {
|
||||||
Node = require("./Node");
|
|
||||||
return when.promise(function(resolve,reject) {
|
return when.promise(function(resolve,reject) {
|
||||||
var RED = require("../red.js");
|
var RED = require("../red.js");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user