fixed tls setting error
This commit is contained in:
parent
031f6274f9
commit
e08207ad8c
2 changed files with 3 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ module.exports = function(RED) {
|
|||
this.server = RED.nodes.getNode(config.server);
|
||||
this.table = config.tableId
|
||||
node.on('input', async function(msg, send, done) {
|
||||
const protocol=this.server.tlsEnabled ? "https" : "http";
|
||||
const protocol=this.server.tlsEnabled === true ? "https" : "http";
|
||||
const url=protocol+"://"+this.server.hostname+":"+this.server.port;
|
||||
|
||||
const api = new GristDocAPI(this.document.docid,{apiKey:this.server.apiKey,server:url});
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@
|
|||
<input type="text" id="node-config-input-port">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-tlsenabled"><i class="fa fa-bookmark"></i> Enable TLS</label>
|
||||
<input type="text" id="node-config-input-tlsenabled">
|
||||
<label for="node-config-input-tlsEnabled"><i class="fa fa-bookmark"></i> Enable TLS</label>
|
||||
<input type="checkbox" id="node-config-input-tlsEnabled">
|
||||
</div>
|
||||
<div class="form-row">
|
||||
<label for="node-config-input-apiKey"><i class="fa fa-bookmark"></i> API Key</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue