dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit a591d54b2e2916ba90de53a59dc43cea6c905e45
parent e475d637c1c267514e12e39341948d6a03a1833a
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 11 Jun 2023 16:30:38 -0700

cleanup

Diffstat:
Mpkg/web/handlers/handlers.go | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/pkg/web/handlers/handlers.go b/pkg/web/handlers/handlers.go @@ -5225,8 +5225,7 @@ Loop: case <-quit: return } - cTurn := utils.Ternary(payload.Turn == chess.White, "w", "b") - promoImg := "/public/img/chess/" + cTurn + strings.ToUpper(payload.Move.Promo().String()) + ".png" + promoImg := "/public/img/chess/" + payload.Turn.String() + strings.ToUpper(payload.Move.Promo().String()) + ".png" send(fmt.Sprintf(`<style>#%s { background-image: url("%s") !important; }</style>`, payload.IDStr1, promoImg)) c.Response().Flush() }(payload, c)