mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Nodes must not require(settings) themselves (again)
This commit is contained in:
parent
97dbe8da0c
commit
c6130a67da
@ -27,7 +27,7 @@ var xmpp = require('simple-xmpp');
|
|||||||
console.warn = orig;
|
console.warn = orig;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var xmppkey = require(process.env.NODE_RED_HOME+"/settings").xmpp || require(process.env.NODE_RED_HOME+"/../xmppkeys.js");
|
var xmppkey = RED.settings.xmpp || require(process.env.NODE_RED_HOME+"/../xmppkeys.js");
|
||||||
} catch(err) {
|
} catch(err) {
|
||||||
throw new Error("Failed to load XMPP credentials");
|
throw new Error("Failed to load XMPP credentials");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user