mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-06 17:11:55 +00:00
fix: use config for initial configuration fetch
This commit is contained in:
@@ -50,7 +50,7 @@ export default observer(({ children }: Props) => {
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (navigator.onLine) {
|
if (navigator.onLine) {
|
||||||
new Client().req("GET", "/").then(state.config.set);
|
state.config.createClient().req("GET", "/").then(state.config.set);
|
||||||
}
|
}
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user