From ac72bfd841ae4522b39963758123b63e8342679e Mon Sep 17 00:00:00 2001 From: Keigo <1226355793@qq.com> Date: Mon, 8 Jul 2024 15:32:32 +0800 Subject: [PATCH] fix: issue #198 --- client/src/state/config.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/state/config.tsx b/client/src/state/config.tsx index ed5cb63f..5a9448af 100644 --- a/client/src/state/config.tsx +++ b/client/src/state/config.tsx @@ -1,6 +1,6 @@ import { createContext } from "react"; -const defaultFavicon = process.env.AVATAR ? `//wsrv.nl/?url=${process.env.AVATAR}&w=144&h=144&mask=circle` : '/favicon.ico' +const defaultFavicon = process.env.AVATAR ? `//wsrv.nl/?url=${encodeURIComponent(process.env.AVATAR)}&w=144&h=144&mask=circle` : '/favicon.ico'; export const defaultClientConfig = new Map(Object.entries({ "favicon": defaultFavicon, "counter.enabled": true,