fix(chat): correct url in game invite

This commit is contained in:
Maieul BOYER 2026-01-14 17:08:48 +01:00 committed by Maix0
parent 3eb1057054
commit 96d8ffb5d4

View file

@ -229,7 +229,7 @@ async function onReady(fastify: FastifyInstance) {
const profilInvite: ClientProfil = JSON.parse(data) || ''; const profilInvite: ClientProfil = JSON.parse(data) || '';
const linkGame: PongGameId | undefined = await setGameLink(fastify, data); const linkGame: PongGameId | undefined = await setGameLink(fastify, data);
if (!linkGame) return; if (!linkGame) return;
const link: string = `<a href="https://localhost:8888/app/pong?game=${linkGame}" style="color: blue; text-decoration: underline; cursor: pointer;">Click me</a>`; const link: string = `<a href="/app/pong?game=${linkGame}" style="color: blue; text-decoration: underline; cursor: pointer;">Click me</a>`;
const inviteHtml: string = 'invites you to a game ' + link; const inviteHtml: string = 'invites you to a game ' + link;
if (clientName !== null) { if (clientName !== null) {