snappymail/dev/boot.js

23 lines
527 B
JavaScript
Raw Normal View History

2019-06-29 08:17:29 +08:00
import window from 'window';
2019-07-05 03:19:24 +08:00
import { progressJs } from '../vendors/Progress.js/src/progress.js';
2016-05-20 08:04:15 +08:00
window.progressJs = window.progressJs || progressJs();
window.progressJs.onbeforeend(() => {
2016-05-26 06:38:32 +08:00
const _$ = window.$;
2019-07-05 03:19:24 +08:00
if (_$) {
try {
_$('.progressjs-container').hide();
window.setTimeout(() => {
_$('.progressjs-container').remove();
}, 200); // eslint-disable-line no-magic-numbers
2019-07-05 03:19:24 +08:00
} catch (e) {} // eslint-disable-line no-empty
2016-05-20 08:04:15 +08:00
}
});
2016-05-06 23:14:40 +08:00
2016-08-11 07:34:09 +08:00
require('Common/Booter');
2016-05-06 23:14:40 +08:00
2019-07-05 03:19:24 +08:00
if (window.__runBoot) {
2016-05-20 08:04:15 +08:00
window.__runBoot();
}