diff --git a/node-red-grist/records.js b/node-red-grist/records.js index 62086eb..e58f92b 100644 --- a/node-red-grist/records.js +++ b/node-red-grist/records.js @@ -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}); diff --git a/node-red-grist/server.html b/node-red-grist/server.html index c001c82..8541ca3 100644 --- a/node-red-grist/server.html +++ b/node-red-grist/server.html @@ -24,8 +24,8 @@