mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-18 18:54:52 +00:00
Generate random room on refresh
This commit is contained in:
parent
325c270990
commit
171b844e98
@ -68,7 +68,7 @@ app.get('/:roomId', (req, res) => {
|
|||||||
return res.render('index', {username: shortid.generate()});
|
return res.render('index', {username: shortid.generate()});
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.render('noop', {});
|
return res.redirect('/');
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -244,12 +244,12 @@ $(function() {
|
|||||||
socket.on('login', function (data) {
|
socket.on('login', function (data) {
|
||||||
connected = true;
|
connected = true;
|
||||||
// Display the welcome message
|
// Display the welcome message
|
||||||
var message = "Fatty.chat - Anonymous Chat";
|
var message = "Fatty.chat - Anonymous Chat - Room ID: " + roomId.replace('/', '');
|
||||||
log(message, {
|
log(message, {
|
||||||
prepend: true
|
prepend: true
|
||||||
});
|
});
|
||||||
|
|
||||||
message = "Chatrooms are destroyed after all participants exit. Chat history is not persistent and not saved.";
|
message = "This chatroom is destroyed after all participants exit. Chat history is client side only and not persistent.";
|
||||||
|
|
||||||
log(message);
|
log(message);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user