mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-10 09:02:45 +08:00
32 lines
715 B
JavaScript
32 lines
715 B
JavaScript
import elementDatasetPolyfill from 'element-dataset';
|
|
elementDatasetPolyfill();
|
|
|
|
require('json3');
|
|
require('intersection-observer');
|
|
|
|
import window from 'window';
|
|
import {progressJs} from '../vendors/Progress.js/src/progress.js';
|
|
|
|
window.progressJs = window.progressJs || progressJs();
|
|
|
|
window.progressJs.onbeforeend(() => {
|
|
const _$ = window.$;
|
|
if (_$)
|
|
{
|
|
try {
|
|
_$('.progressjs-container').hide();
|
|
window.setTimeout(() => {
|
|
_$('.progressjs-container').remove();
|
|
}, 200); // eslint-disable-line no-magic-numbers
|
|
}
|
|
catch (e) {} // eslint-disable-line no-empty
|
|
}
|
|
});
|
|
|
|
require('../vendors/modernizr/modernizr-custom.js');
|
|
require('Common/Booter');
|
|
|
|
if (window.__runBoot)
|
|
{
|
|
window.__runBoot();
|
|
}
|