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

@ -2,7 +2,6 @@ import ko from 'ko';
import { Notification, UploadErrorCode } from 'Common/Enums';
import { pInt } from 'Common/Utils';
import { $html, $htmlCL } from 'Common/Globals';
import { reload as momentorReload } from 'Common/Momentor';
import { langLink } from 'Common/Links';
let I18N_DATA = window.rainloopI18N || {};
@ -148,7 +147,7 @@ const reloadData = () => {
i18nToNodes(document);
momentorReload();
dispatchEvent(new CustomEvent('reload-time'));
trigger(!trigger());
}