mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Attach server object to the right part of runtime api
This commit is contained in:
parent
2353f12cd6
commit
ffa6dea452
2
packages/node_modules/node-red/lib/red.js
vendored
2
packages/node_modules/node-red/lib/red.js
vendored
@ -59,7 +59,7 @@ module.exports = {
|
|||||||
|
|
||||||
apiEnabled = true;
|
apiEnabled = true;
|
||||||
server = runtime._.adminApi.server;
|
server = runtime._.adminApi.server;
|
||||||
runtime.server = runtime._.adminApi.server;
|
runtime._.server = runtime._.adminApi.server;
|
||||||
} else {
|
} else {
|
||||||
runtime.init(userSettings,redUtil);
|
runtime.init(userSettings,redUtil);
|
||||||
apiEnabled = false;
|
apiEnabled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user