snappymail/dev/boot.js
djmaze 0b0747b8dc Upgraded some old JavaScript to ECMAScript 1.6
Removed some jQuery references
Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
2020-07-15 14:25:51 +02:00

22 lines
534 B
JavaScript

import window from 'window';
import { progressJs } from '../vendors/Progress.js/src/progress.js';
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
} catch (e) {} // eslint-disable-line no-empty
}
});
require('Common/Booter');
if (window.__runBoot) {
window.__runBoot();
}