change gamelink to new one by @Maix

This commit is contained in:
NigeParis 2026-01-15 11:32:37 +01:00 committed by Maix0
parent ce261b70f8
commit cedb54e395

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="/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) {