Momentor.reload to CustomEvent

This commit is contained in:
djmaze 2020-08-14 21:19:06 +02:00
parent 9f1ea1a0fd
commit efc2dd89e1
4 changed files with 23 additions and 38 deletions

View file

@ -23,7 +23,6 @@ import { $htmlCL, leftPanelDisabled, bMobileDevice } from 'Common/Globals';
import { UNUSED_OPTION_VALUE } from 'Common/Consts';
import { runHook } from 'Common/Plugins';
import { reload as momentReload } from 'Common/Momentor';
import {
initMessageFlagsFromCache,
@ -1141,7 +1140,7 @@ class AppUser extends AbstractApp {
this.bootstartLoginScreen();
}
setInterval(momentReload, 60000);
setInterval(() => dispatchEvent(new CustomEvent('reload-time')), 60000);
runHook('rl-start-screens');
}