Fixed rooms not being deleted from the json file #4
5
app.js
5
app.js
@ -279,10 +279,7 @@ function leaveRoom() {
|
||||
roomItem.remove();
|
||||
}
|
||||
|
||||
console.log(config.rooms);
|
||||
console.log(config.rooms.filter(e => e !== currentRoom.topic.toString()));
|
||||
console.log(currentRoom.topic);
|
||||
console.log(currentRoom.topic.toString());
|
||||
console.log(topic);
|
||||
config.rooms = config.rooms.filter(e => e !== currentRoom.topic.toString());
|
||||
writeConfigToFile("./config.json");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user