mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-11 00:14:50 +03:00
*.jsx -> *.js
This commit is contained in:
parent
0a2b826f71
commit
e88c193334
98 changed files with 341 additions and 340 deletions
34
dev/boot.js
Normal file
34
dev/boot.js
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
|
||||
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');
|
||||
|
||||
if (window.__runBoot)
|
||||
{
|
||||
window.__runBoot();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue