fix gitignore
This commit is contained in:
parent
f05f7c8f82
commit
44999b70a0
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
.env
|
.env
|
||||||
dist
|
dist
|
||||||
node_modules
|
node_modules
|
||||||
|
storage/*
|
@ -34,7 +34,7 @@ export default class ConfigManager {
|
|||||||
fs.writeFileSync(this.configPath, JSON.stringify(r))
|
fs.writeFileSync(this.configPath, JSON.stringify(r))
|
||||||
}
|
}
|
||||||
load() {
|
load() {
|
||||||
const r = { userManager: this.userManager }
|
const r = { userManager: this.userManager, serverInfo: this.serverInfo, messages: this.messages }
|
||||||
if (!fs.existsSync(this.configPath)) {
|
if (!fs.existsSync(this.configPath)) {
|
||||||
fs.writeFileSync(this.configPath, JSON.stringify(r))
|
fs.writeFileSync(this.configPath, JSON.stringify(r))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user