Loading src/app/game/game.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ export class GameComponent implements OnInit { ngOnInit(): void { this.activatedRoute.paramMap.subscribe(params => { this.sessionName = String(params.get('sessionName')); this.sessionName = String(params.get('sessionName')).toLowerCase(); this.team = String(params.get('team')); const url = this.router.url.split('/'); const checkUser = url[url.length - 1]; Loading src/app/guesser/guesser.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ export class GuesserComponent implements OnInit { ngOnInit(): void { this.activatedRoute.paramMap.subscribe(params => { this.sessionName = String(params.get('sessionName')); this.sessionName = String(params.get('sessionName')).toLowerCase(); this.team = String(params.get('team')); if (!this.isAllowedToPlay.isAllowed || this.isAllowedToPlay.role !== 'guesser') { this.router.navigate([this.sessionName + '/' + this.team]); Loading src/app/overview/overview.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ export class OverviewComponent implements OnInit { ngOnInit(): void { this.activatedRoute.paramMap.subscribe(params => { this.sessionName = String(params.get('sessionName')); this.sessionName = String(params.get('sessionName')).toLowerCase(); this.team = String(params.get('team')); console.log('Team:', this.team); if (this.team === 'red'){ Loading src/app/select-game/select-game.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ export class SelectGameComponent implements OnInit { } keyPressAlphaNumeric(event: KeyboardEvent): boolean { if (/[a-zA-Z0-9]/.test(event.key)) { if (/[a-z0-9]/.test(event.key)) { return true; } else { event.preventDefault(); Loading Loading
src/app/game/game.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ export class GameComponent implements OnInit { ngOnInit(): void { this.activatedRoute.paramMap.subscribe(params => { this.sessionName = String(params.get('sessionName')); this.sessionName = String(params.get('sessionName')).toLowerCase(); this.team = String(params.get('team')); const url = this.router.url.split('/'); const checkUser = url[url.length - 1]; Loading
src/app/guesser/guesser.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ export class GuesserComponent implements OnInit { ngOnInit(): void { this.activatedRoute.paramMap.subscribe(params => { this.sessionName = String(params.get('sessionName')); this.sessionName = String(params.get('sessionName')).toLowerCase(); this.team = String(params.get('team')); if (!this.isAllowedToPlay.isAllowed || this.isAllowedToPlay.role !== 'guesser') { this.router.navigate([this.sessionName + '/' + this.team]); Loading
src/app/overview/overview.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -39,7 +39,7 @@ export class OverviewComponent implements OnInit { ngOnInit(): void { this.activatedRoute.paramMap.subscribe(params => { this.sessionName = String(params.get('sessionName')); this.sessionName = String(params.get('sessionName')).toLowerCase(); this.team = String(params.get('team')); console.log('Team:', this.team); if (this.team === 'red'){ Loading
src/app/select-game/select-game.component.ts +1 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,7 @@ export class SelectGameComponent implements OnInit { } keyPressAlphaNumeric(event: KeyboardEvent): boolean { if (/[a-zA-Z0-9]/.test(event.key)) { if (/[a-z0-9]/.test(event.key)) { return true; } else { event.preventDefault(); Loading