Tidy up / hide non-supported ways of doing twill crews

This commit is contained in:
Dave Conway-Jones
2017-06-05 17:26:05 +01:00
parent f1fa9524f6
commit 7af48ce10b
3 changed files with 8 additions and 17 deletions

View File

@@ -19,14 +19,10 @@ module.exports = function(RED) {
this.from = n.from;
this.name = n.name;
var credentials = this.credentials;
if (credentials) {
this.token = credentials.token;
}
if (credentials) { this.token = credentials.token; }
}
RED.nodes.registerType("twilio-api",TwilioAPINode,{
credentials: {
token: "password"
}
credentials: { token: "password" }
});
@@ -78,7 +74,6 @@ module.exports = function(RED) {
//console.log(response);
});
}
}
catch (err) {
node.error(err,msg);