mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-11 09:45:54 +08:00
c3985da102
Update libs
34 lines
763 B
JavaScript
34 lines
763 B
JavaScript
|
|
import window from 'window';
|
|
|
|
import {Promise} from 'es6-promise-polyfill/promise.js';
|
|
import {progressJs} from '../node_modules/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 (_$)
|
|
{
|
|
try {
|
|
_$('.progressjs-container').hide();
|
|
window.setTimeout(() => {
|
|
_$('.progressjs-container').remove();
|
|
}, 200); // eslint-disable-line no-magic-numbers
|
|
}
|
|
catch (e) {} // eslint-disable-line no-empty
|
|
}
|
|
});
|
|
|
|
require('json3');
|
|
require('../vendors/modernizr/modernizr-custom.js');
|
|
|
|
require('Common/Booter.jsx');
|
|
|
|
if (window.__runBoot)
|
|
{
|
|
window.__runBoot();
|
|
}
|