mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Allow coreNodesDir to be set to false
This will disable all core nodes
This commit is contained in:
parent
d6e05962c9
commit
77fb5ef2ab
2
packages/node_modules/node-red/lib/red.js
vendored
2
packages/node_modules/node-red/lib/red.js
vendored
@ -61,7 +61,7 @@ module.exports = {
|
||||
checkVersion(userSettings);
|
||||
}
|
||||
|
||||
if (!userSettings.coreNodesDir) {
|
||||
if (!userSettings.hasOwnProperty("coreNodesDir")) {
|
||||
userSettings.coreNodesDir = path.dirname(require.resolve("@node-red/nodes"))
|
||||
}
|
||||
redUtil.init(userSettings);
|
||||
|
Loading…
Reference in New Issue
Block a user