1
0
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:
Ben Hardill 2021-09-22 10:21:23 +01:00
parent d6e05962c9
commit 77fb5ef2ab
No known key found for this signature in database
GPG Key ID: 74DD076979ABB1E7

View File

@ -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);