fixed tls setting error

This commit is contained in:
Michael Kolb 2023-01-07 15:40:24 +01:00
parent 031f6274f9
commit e08207ad8c
2 changed files with 3 additions and 3 deletions

View file

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