mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-03-07 11:26:52 +08:00
Fix joining game as phone
The name was not changed over to use ID
This commit is contained in:
parent
d365c20b22
commit
6312c67d34
@ -110,7 +110,7 @@ export class ControlsComponent implements OnInit {
|
||||
|
||||
onConnect(evt: MessageEvent) {
|
||||
const name = sessionStorage.getItem('username');
|
||||
this.gameSocket.sendText(JSON.stringify({ playerjoined: name }));
|
||||
this.gameSocket.sendText(JSON.stringify({ 'playerjoined': sessionStorage.getItem('userId') }));
|
||||
}
|
||||
|
||||
onMessage(evt: MessageEvent) {
|
||||
|
Loading…
Reference in New Issue
Block a user