Change avatar background color
Build and Publish Docker Image / build-and-push-image (push) Successful in 49s

This commit is contained in:
Zed
2026-07-07 15:37:08 +02:00
parent 574e0c8004
commit 722b98c74c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -166,7 +166,7 @@ export default function NewGame() {
if (!finalAvatar) { if (!finalAvatar) {
try { try {
const seed = Math.random().toString(36).substring(7); 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 response = await fetch(url);
const svgText = await response.text(); const svgText = await response.text();
finalAvatar = `data:image/svg+xml;utf8,${encodeURIComponent(svgText)}`; finalAvatar = `data:image/svg+xml;utf8,${encodeURIComponent(svgText)}`;
+1 -1
View File
@@ -120,7 +120,7 @@ export default function Players() {
// Seed aléatoire // Seed aléatoire
const seed = Math.random().toString(36).substring(7); const seed = Math.random().toString(36).substring(7);
// Utilisation du style "bottts-neutral" // 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 response = await fetch(url);
const svgText = await response.text(); const svgText = await response.text();