forked from snxraven/LinkUp-P2P-Chat
Its actually not the reason...
This commit is contained in:
parent
2befd34039
commit
4a881ed721
1
app.js
1
app.js
@ -432,6 +432,7 @@ function writeConfigToFile(filePath) {
|
|||||||
async function readConfigFromFile(filePath) {
|
async function readConfigFromFile(filePath) {
|
||||||
await fs.readFile(filePath, 'utf8', (err, data) => {
|
await fs.readFile(filePath, 'utf8', (err, data) => {
|
||||||
if(err) return console.log("Error while reading config.json! ", err);
|
if(err) return console.log("Error while reading config.json! ", err);
|
||||||
|
console.log(data)
|
||||||
config = JSON.parse(data);
|
config = JSON.parse(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user