mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-15 12:15:20 +08:00
0b0747b8dc
Removed some jQuery references Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
22 lines
534 B
JavaScript
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();
|
|
}
|