mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
Updated way main RED settings loaded
This commit is contained in:
parent
8b29841f97
commit
20aa487068
@ -24,7 +24,7 @@ var util = require('util');
|
|||||||
// module.exports = { account:'My-ACCOUNT-SID', authtoken:'TWILIO-TOKEN',from:'FROM-NUMBER' }
|
// module.exports = { account:'My-ACCOUNT-SID', authtoken:'TWILIO-TOKEN',from:'FROM-NUMBER' }
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var twiliokey = require(process.env.NODE_RED_HOME+"/settings").twilio || require(process.env.NODE_RED_HOME+"/../twiliokey.js");
|
var twiliokey = RED.settings.twilio || require(process.env.NODE_RED_HOME+"/../twiliokey.js");
|
||||||
}
|
}
|
||||||
catch(err) {
|
catch(err) {
|
||||||
util.log("[56-twilio.js] Error: Failed to load Twilio credentials");
|
util.log("[56-twilio.js] Error: Failed to load Twilio credentials");
|
||||||
|
Loading…
Reference in New Issue
Block a user