Starting popup notice

This commit is contained in:
2024-01-14 15:40:20 +01:00
parent a254e5a0c2
commit a085fcd92b
9 changed files with 60 additions and 17 deletions

View File

@ -10,7 +10,10 @@ export default class extends AbstractView {
async wait_get_online_users() {
return new Promise((resolve) => {
const checkInterval = setInterval(() => {
if (Object.keys(client.notice.online_users).length > 0) {
if (client.notice !== undefined &&
client.notice.online_users !== undefined &&
Object.keys(client.notice.online_users).length > 0) {
clearInterval(checkInterval);
resolve();
}