snappymail/dev/boot.js

23 lines
534 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(() => {
const div = window.document.querySelector('.progressjs-container');
if (div) {
try {
div.hidden = true;
window.setTimeout(() => {
div.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();
}