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