snappymail/dev/boot.js
2018-05-16 17:31:45 +03:00

37 lines
851 B
JavaScript

import window from 'window';
import elementDatasetPolyfill from 'element-dataset';
import 'es6-object-assign/auto';
import {Promise} from 'es6-promise-polyfill/promise.js';
import {progressJs} from '../vendors/Progress.js/src/progress.js';
window.Promise = window.Promise || Promise;
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
}
});
elementDatasetPolyfill();
require('json3');
require('intersection-observer');
require('../vendors/modernizr/modernizr-custom.js');
require('Common/Booter');
if (window.__runBoot)
{
window.__runBoot();
}