Starting popup notice
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user