Working on Config system (Saving & Loading user data) #3

Merged
snxraven merged 16 commits from MiTask/LinkUp-P2P-Chat:main into main 2024-06-09 03:11:48 -04:00
Showing only changes of commit b577ff3207 - Show all commits

2
app.js
View File

@ -96,8 +96,10 @@ async function initialize() {
}
const configExists = fs.existsSync("./config.json");
console.log("Config exists:", configExists)
if (configExists) {
readConfigFromFile("./config.json");
console.log("Config:", config)
config.rooms.forEach(room => {
addRoomToList(room);
});