*openJson needs to be bound

This commit is contained in:
Derrick Hammer 2022-09-21 17:18:45 -04:00
parent 4dca570ba8
commit 1491fa7567
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ export default class Config {
assert(fs.existsSync(dir), `Directory ${dir} does not exist`); assert(fs.existsSync(dir), `Directory ${dir} does not exist`);
let files = fs.readdirSync(dir).map((item) => Path.join(dir, item)); let files = fs.readdirSync(dir).map((item) => Path.join(dir, item));
files.forEach(this.openJson); files.forEach(this.openJson.bind(this));
} }
public openJson(file: string) { public openJson(file: string) {