From 722b98c74c5d4b6fcc1d850f262dc752d17c6e79 Mon Sep 17 00:00:00 2001 From: Zed Date: Tue, 7 Jul 2026 15:37:08 +0200 Subject: [PATCH] Change avatar background color --- src/pages/NewGame.tsx | 2 +- src/pages/Players.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/NewGame.tsx b/src/pages/NewGame.tsx index b954df2..a2d8b9f 100644 --- a/src/pages/NewGame.tsx +++ b/src/pages/NewGame.tsx @@ -166,7 +166,7 @@ export default function NewGame() { if (!finalAvatar) { try { const seed = Math.random().toString(36).substring(7); - const url = `https://api.dicebear.com/9.x/bottts-neutral/svg?seed=${seed}&backgroundColor=transparent`; + const url = `https://api.dicebear.com/9.x/bottts-neutral/svg?seed=${seed}`; const response = await fetch(url); const svgText = await response.text(); finalAvatar = `data:image/svg+xml;utf8,${encodeURIComponent(svgText)}`; diff --git a/src/pages/Players.tsx b/src/pages/Players.tsx index d0abee9..c70578d 100644 --- a/src/pages/Players.tsx +++ b/src/pages/Players.tsx @@ -120,7 +120,7 @@ export default function Players() { // Seed aléatoire const seed = Math.random().toString(36).substring(7); // Utilisation du style "bottts-neutral" - const url = `https://api.dicebear.com/9.x/bottts-neutral/svg?seed=${seed}&backgroundColor=transparent`; + const url = `https://api.dicebear.com/9.x/bottts-neutral/svg?seed=${seed}`; const response = await fetch(url); const svgText = await response.text();