mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-28 13:36:16 +02:00
noWatch -> hotReload
This commit is contained in:
parent
cfaff61abf
commit
e674079f53
3 changed files with 13 additions and 11 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue