mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-11-08 04:31:03 +00:00
fix: use config for initial configuration fetch
This commit is contained in:
1 parent
8d1e26d03e
commit
fc046936aa
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in new issue
Block a user