From e7609dc50e737e60204d4a08901ba676eb179965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Untersch=C3=BCtz?= Date: Wed, 22 Apr 2026 20:34:03 +0200 Subject: [PATCH] simplify QR code generation in WASM presentation logic --- cmd/client/main_wasm.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/client/main_wasm.go b/cmd/client/main_wasm.go index 694ce96..b1f5d95 100644 --- a/cmd/client/main_wasm.go +++ b/cmd/client/main_wasm.go @@ -11,10 +11,7 @@ import ( ) func (g *Game) notifyPresentationStarted_Platform(roomID string) { - // Im WASM: QR Code aus dem Game-Struct nehmen - var qrData []byte - // Wir generieren den QR Code hier nochmal als PNG Bytes oder wir speichern die Bytes im Game Struct - // Der Einfachheit halber generieren wir ihn in Go und übergeben ihn. + // Wir generieren den QR Code hier als PNG Bytes. joinURL := "https://escape-from-school.de/?room=" + roomID pngData, _ := qrcode.Encode(joinURL, qrcode.Medium, 256) g.notifyPresentationStarted(roomID, pngData)