mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-03-07 11:26:52 +08:00
Review comments
This commit is contained in:
parent
8b4ded5fab
commit
9f847f6818
@ -17,7 +17,7 @@ export class LoginComponent implements OnInit {
|
||||
|
||||
createRound() {
|
||||
$.post(`http://${document.location.hostname}:8080/round/create`, function(data) {
|
||||
alert('Created round: ' + data);
|
||||
alert(`Created round: ${data}`);
|
||||
});
|
||||
}
|
||||
|
||||
@ -32,7 +32,7 @@ export class LoginComponent implements OnInit {
|
||||
// this post request takes a noticeable amount of time
|
||||
let router = this.router;
|
||||
$.post(`http://${document.location.hostname}:8080/round/create`, function(data) {
|
||||
console.log(`Created round with id=` + data);
|
||||
console.log(`Created round with id=${data}`);
|
||||
sessionStorage.setItem('isSpectator', 'true');
|
||||
sessionStorage.setItem('roundId', data);
|
||||
router.navigate(['/game']);
|
||||
|
Loading…
Reference in New Issue
Block a user