1
Fork 0

typescript(translucid): fixed undefined

Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
Matei Adriel 2019-01-22 22:21:31 +02:00 committed by prescientmoon
parent 4357da589a
commit 190a9f8e12
Signed by: prescientmoon
SSH key fingerprint: SHA256:UUF9JT2s8Xfyv76b8ZuVL7XrmimH4o49p4b+iexbVH4
2 changed files with 2 additions and 2 deletions

View file

@ -25,7 +25,7 @@ class Translucid {
const object = JSON.parse(json); const object = JSON.parse(json);
for (let i in object) { for (let i in object) {
const classes = object[i].classes || []; const classes = object[i].classes || [];
const sendAsFiles = object[i].sendFiles; const sendFiles = object[i].sendFiles;
if (sendFiles != false) if (sendFiles != false)
sendFiles = true; sendFiles = true;
this.bind(i, object[i].file, classes, sendFiles); this.bind(i, object[i].file, classes, sendFiles);

View file

@ -30,7 +30,7 @@ class Translucid {
for (let i in object){ for (let i in object){
const classes = object[i].classes || []; const classes = object[i].classes || [];
const sendAsFiles = object[i].sendFiles; const sendFiles = object[i].sendFiles;
if (sendFiles != false) sendFiles = true; if (sendFiles != false) sendFiles = true;
this.bind(i,object[i].file,classes,sendFiles); this.bind(i,object[i].file,classes,sendFiles);
} }