Skip to content

Commit

Permalink
fix(ui): do NOT check user login
Browse files Browse the repository at this point in the history
  • Loading branch information
Molmin committed Jun 6, 2024
1 parent cd92c83 commit a10d4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ registerPage('game_replay', pageGameReplay.init)

$(async () => {
registerAlertEvent()
await UserService.init()
if (window['site_prefix'] === '') await UserService.init()
const pathname = getPathName()
if (/^\/login$/.test(pathname)) gotoPage('login')
else {
Expand Down

0 comments on commit a10d4a3

Please sign in to comment.