Fix hard coded config.hjson event in ConfigLoader
* ConfigLoader init can now take onReload handler * Use onReload for config.hjson/system config event
This commit is contained in:
@@ -37,6 +37,12 @@ exports.Config = class Config extends ConfigLoader {
|
||||
}
|
||||
}
|
||||
},
|
||||
onReload : err => {
|
||||
if (!err) {
|
||||
const Events = require('./events.js');
|
||||
Events.emit(Events.getSystemEvents().ConfigChanged);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
systemConfigInstance = new Config(options);
|
||||
|
||||
Reference in New Issue
Block a user