mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-30 22:46:17 +02:00
New Config class working quite well for system config. Menu.hjson/etc. to come
This commit is contained in:
parent
37bc2fc3aa
commit
9394730011
4 changed files with 128 additions and 266 deletions
|
@ -35,7 +35,7 @@ module.exports = new class ConfigCache
|
|||
this.recacheConfigFromFile(paths.join(fileRoot, fileName), err => {
|
||||
if(!err) {
|
||||
if(options.callback) {
|
||||
options.callback( { fileName, fileRoot } );
|
||||
options.callback( { fileName, fileRoot, configCache : this } );
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue