Change avatar background color
Build and Publish Docker Image / build-and-push-image (push) Successful in 49s
Build and Publish Docker Image / build-and-push-image (push) Successful in 49s
This commit is contained in:
@@ -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)}`;
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user