diff --git a/typescript/translucid/Translucid.js b/typescript/translucid/Translucid.js index 5ea99d6..c58be4a 100644 --- a/typescript/translucid/Translucid.js +++ b/typescript/translucid/Translucid.js @@ -25,7 +25,7 @@ class Translucid { const object = JSON.parse(json); for (let i in object) { const classes = object[i].classes || []; - const sendFiles = object[i].sendFiles; + let sendFiles = object[i].sendFiles; if (sendFiles != false) sendFiles = true; this.bind(i, object[i].file, classes, sendFiles); diff --git a/typescript/translucid/Translucid.ts b/typescript/translucid/Translucid.ts index 2cb5110..2221a41 100644 --- a/typescript/translucid/Translucid.ts +++ b/typescript/translucid/Translucid.ts @@ -30,7 +30,7 @@ class Translucid { for (let i in object){ const classes = object[i].classes || []; - const sendFiles = object[i].sendFiles; + let sendFiles = object[i].sendFiles; if (sendFiles != false) sendFiles = true; this.bind(i,object[i].file,classes,sendFiles); }