mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-22 09:04:50 -05:00
Chat: Add clarifying message to pages that require logins
This commit is contained in:
@@ -494,6 +494,11 @@ export class PageContext extends MessageContext {
|
||||
this.setHTML(res);
|
||||
res = undefined;
|
||||
}
|
||||
if (res === Rooms.RETRY_AFTER_LOGIN) {
|
||||
this.setHTML(
|
||||
`Please log in before accessing this page (don't worry, it will load automatically once you do so).`
|
||||
);
|
||||
}
|
||||
return res;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user