snappymail/dev/boot.jsx
2016-07-05 22:52:52 +03:00

31 lines
715 B
JavaScript

import window from 'window';
import {Promise} from 'es6-promise-polyfill/promise.js';
import {progressJs} from '../vendors/progress.js/src/progress.js';
import {jassl} from 'jassl';
window.jassl = jassl;
window.Promise = window.Promise || Promise;
window.progressJs = window.progressJs || progressJs();
window.progressJs.onbeforeend(() => {
const _$ = window.$;
if (_$)
{
_$('.progressjs-container').hide();
window.setTimeout(() => {
_$('.progressjs-container').remove();
}, 200); // eslint-disable-line no-magic-numbers
}
});
require('../vendors/json2/json2.js');
require('../vendors/modernizr/modernizr-custom.js');
require('Common/Booter.jsx');
if (window.__runBoot)
{
window.__runBoot();
}