Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client/src/components/Entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ export default class Entry extends Component {
constructor(props) {
super(props);

let roomName = new URLSearchParams(window.location.search).keys().next().value;
this.state = {
roomName: '',
roomName: roomName || '',
nickName: '',
};
}
Expand Down
5 changes: 4 additions & 1 deletion client/src/components/RoomComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,10 @@ export default class RoomComponent extends Component {
Room Name: <b>{this.state.roomName}</b>
</Typography>
<Typography variant='subtitle1'>
Ask your friends to join using the above room name!
Join with the above room name or below link!
</Typography>
<Typography>
{window.location.origin + '/?' + this.state.roomName}
</Typography>
<Divider variant='middle' style={styles.divider} />
<div style={styles.settingsContainer}>
Expand Down