typescript(translucid): fixed undefined
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
4357da589a
commit
190a9f8e12
|
@ -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);
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue