commit 1491764cdb5b0712eb1512f33dd92d3a0b4d7d72 parent 9953a87f5f447785c416b42807367d3367ae0ff7 Author: n0tr1v <n0tr1v@protonmail.com> Date: Tue, 19 Dec 2023 02:10:10 -0500 cleanup Diffstat:
| M | pkg/web/handlers/poker/poker.go | | | 13 | +++++++------ |
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/pkg/web/handlers/poker/poker.go b/pkg/web/handlers/poker/poker.go @@ -1730,20 +1730,21 @@ func buildCountdownsHtml() (html string) { } func buildActionsDiv(roomID RoomID) (html string) { + roomIDStr := roomID.String() html += ` <table id="actionsDiv"> <tr> <td> - <iframe src="/poker/` + roomID.String() + `/deal" id="dealBtn"></iframe> - <iframe src="/poker/` + roomID.String() + `/unsit" id="unSitBtn"></iframe> + <iframe src="/poker/` + roomIDStr + `/deal" id="dealBtn"></iframe> + <iframe src="/poker/` + roomIDStr + `/unsit" id="unSitBtn"></iframe> </td> <td style="vertical-align: top;" rowspan="2"> - <iframe src="/poker/` + roomID.String() + `/bet" id="betBtn"></iframe> + <iframe src="/poker/` + roomIDStr + `/bet" id="betBtn"></iframe> </td> <td> - <iframe src="/poker/` + roomID.String() + `/call" id="callBtn"></iframe> - <iframe src="/poker/` + roomID.String() + `/check" id="checkBtn"></iframe> - <iframe src="/poker/` + roomID.String() + `/fold" id="foldBtn"></iframe> + <iframe src="/poker/` + roomIDStr + `/call" id="callBtn"></iframe> + <iframe src="/poker/` + roomIDStr + `/check" id="checkBtn"></iframe> + <iframe src="/poker/` + roomIDStr + `/fold" id="foldBtn"></iframe> </td> </tr> <tr>