From 9738a04b7a3c63c8cd1450e563ec04823fb3c35a Mon Sep 17 00:00:00 2001 From: Janis Date: Sat, 22 Nov 2025 21:36:23 +0100 Subject: [PATCH] fix(api): Fixed a bug where the game would reload on game start (#81) Reviewed-on: https://git.janis-eccarius.de/KnockOutWhist/KnockOutWhist-Web/pulls/81 Co-authored-by: Janis Co-committed-by: Janis --- knockoutwhist | 2 +- knockoutwhistweb/app/controllers/IngameController.scala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/knockoutwhist b/knockoutwhist index e432283..ec94ecd 160000 --- a/knockoutwhist +++ b/knockoutwhist @@ -1 +1 @@ -Subproject commit e4322839d1610ec2f641e2022426408faa2c0aa1 +Subproject commit ec94ecd46c4ae89191f99638fab1466e7093ed1e diff --git a/knockoutwhistweb/app/controllers/IngameController.scala b/knockoutwhistweb/app/controllers/IngameController.scala index ec941a4..c01083c 100644 --- a/knockoutwhistweb/app/controllers/IngameController.scala +++ b/knockoutwhistweb/app/controllers/IngameController.scala @@ -82,7 +82,8 @@ class IngameController @Inject() ( if (result.isSuccess) { Ok(Json.obj( "status" -> "success", - "redirectUrl" -> routes.IngameController.game(gameId).url + "redirectUrl" -> routes.IngameController.game(gameId).url, + "content" -> returnInnerHTML(game.get, request.user).toString() )) } else { val throwable = result.failed.get