typescript(translucid): oof
Signed-off-by: prescientmoon <git@moonythm.dev>
This commit is contained in:
parent
1e028a4567
commit
2d3fcc12b7
|
@ -24,7 +24,7 @@ class Translucid {
|
|||
const json = await read_1.read(path);
|
||||
const object = JSON.parse(json);
|
||||
for (let i in object) {
|
||||
const classes = object.classes || [];
|
||||
const classes = object[i].classes || [];
|
||||
this.bind(object[i].path, object[i].file, classes);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class Translucid {
|
|||
const object = JSON.parse(json);
|
||||
|
||||
for (let i in object){
|
||||
const classes = object.classes || [];
|
||||
const classes = object[i].classes || [];
|
||||
this.bind(object[i].path,object[i].file,classes);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue