mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: set window.userDetails after login
This commit is contained in:
parent
5450443022
commit
988c01f506
3 changed files with 5 additions and 2 deletions
|
@ -119,8 +119,6 @@ export function App() {
|
|||
if (response) {
|
||||
updateUserDetails(response);
|
||||
syncFriendRequests();
|
||||
|
||||
window["userDetails"] = response;
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
|
@ -56,6 +56,8 @@ export function useUserDetails() {
|
|||
clearUserDetails();
|
||||
}
|
||||
|
||||
window["userDetails"] = userDetails;
|
||||
|
||||
return userDetails;
|
||||
});
|
||||
}, [clearUserDetails]);
|
||||
|
|
|
@ -20,6 +20,7 @@ import resources from "@locales";
|
|||
|
||||
import { RepacksContextProvider } from "./context";
|
||||
import { SuspenseWrapper } from "./components";
|
||||
import { logger } from "./logger";
|
||||
|
||||
const Home = React.lazy(() => import("./pages/home/home"));
|
||||
const GameDetails = React.lazy(
|
||||
|
@ -34,6 +35,8 @@ const Achievements = React.lazy(
|
|||
() => import("./pages/achievements/achievements")
|
||||
);
|
||||
|
||||
console.log = logger.log;
|
||||
|
||||
i18n
|
||||
.use(LanguageDetector)
|
||||
.use(initReactI18next)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue