noWatch -> hotReload

This commit is contained in:
Bryan Ashby 2020-06-09 21:18:17 -06:00
parent cfaff61abf
commit e674079f53
No known key found for this signature in database
GPG key ID: B49EB437951D2542
3 changed files with 13 additions and 11 deletions

View file

@ -50,17 +50,17 @@ module.exports = class ArchiveUtil {
}
// singleton access
static getInstance(noWatch = false) {
static getInstance(hotReload = true) {
if(!archiveUtil) {
archiveUtil = new ArchiveUtil();
archiveUtil.init(noWatch);
archiveUtil.init(hotReload);
}
return archiveUtil;
}
init(noWatch = false) {
init(hotReload = true) {
this.reloadConfig();
if(!noWatch) {
if(hotReload) {
Events.on(Events.getSystemEvents().ConfigChanged, () => {
this.reloadConfig();
});