bug fixed
This commit is contained in:
parent
2820d90a85
commit
d73acc544c
|
@ -84,7 +84,7 @@ export class HomeComponent implements OnInit {
|
|||
private _router: Router,
|
||||
private _matDialog: MatDialog,
|
||||
private _vendorService: VendorService,
|
||||
private _gameService: GameService
|
||||
private __gameService: GameService
|
||||
) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
|
@ -173,7 +173,7 @@ export class HomeComponent implements OnInit {
|
|||
private async getGameByParentId(
|
||||
parenId: number
|
||||
): Promise<ListGamesResponse.Result> {
|
||||
return await this._gameService.listGames(parenId);
|
||||
return await this.__gameService.listGames(parenId);
|
||||
}
|
||||
|
||||
onClickGame(vendor: Vendor): void {
|
||||
|
@ -185,12 +185,21 @@ export class HomeComponent implements OnInit {
|
|||
return;
|
||||
}
|
||||
const game = gameList[0];
|
||||
const url = `/game/?vendor_key=${vendor.getKey()}&game_key=${game.getKey()}`;
|
||||
|
||||
let r = this.__gameService
|
||||
.getGameUrl(vendor.getKey(), game.getKey())
|
||||
.then((r) => {
|
||||
console.log('success', r.getUrl());
|
||||
|
||||
window.open(
|
||||
url,
|
||||
r.getUrl(),
|
||||
'gamepopup',
|
||||
'width=1400, height=900, toolbar=no, menubar=no, scrollbars=no, resizable=yes'
|
||||
);
|
||||
})
|
||||
.catch((e) => {
|
||||
console.log('fail', e);
|
||||
});
|
||||
});
|
||||
// window.open(
|
||||
// '/game/?vendor_key=pragmatic_casino&game_key=101',
|
||||
|
|
Loading…
Reference in New Issue
Block a user