diff --git a/src/context/revoltjs/RevoltClient.tsx b/src/context/revoltjs/RevoltClient.tsx index e3ed971b..1676d56e 100644 --- a/src/context/revoltjs/RevoltClient.tsx +++ b/src/context/revoltjs/RevoltClient.tsx @@ -50,7 +50,7 @@ export default observer(({ children }: Props) => { useEffect(() => { if (navigator.onLine) { - new Client().req("GET", "/").then(state.config.set); + state.config.createClient().req("GET", "/").then(state.config.set); } }, []);