forked from snxraven/LinkUp-P2P-Chat
I guess i know why it doesnt delete the room now
This commit is contained in:
parent
2a2fbed732
commit
d44ef48d89
5
app.js
5
app.js
@ -279,10 +279,7 @@ function leaveRoom() {
|
|||||||
roomItem.remove();
|
roomItem.remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(config.rooms);
|
console.log(topic);
|
||||||
console.log(config.rooms.filter(e => e !== currentRoom.topic.toString()));
|
|
||||||
console.log(currentRoom.topic);
|
|
||||||
console.log(currentRoom.topic.toString());
|
|
||||||
config.rooms = config.rooms.filter(e => e !== currentRoom.topic.toString());
|
config.rooms = config.rooms.filter(e => e !== currentRoom.topic.toString());
|
||||||
writeConfigToFile("./config.json");
|
writeConfigToFile("./config.json");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user