2019-06-29 08:17:29 +08:00
|
|
|
import window from 'window';
|
2019-07-05 03:19:24 +08:00
|
|
|
import { progressJs } from '../vendors/Progress.js/src/progress.js';
|
2016-05-20 08:04:15 +08:00
|
|
|
|
|
|
|
window.progressJs = window.progressJs || progressJs();
|
|
|
|
|
|
|
|
window.progressJs.onbeforeend(() => {
|
2020-07-15 20:25:51 +08:00
|
|
|
const div = window.document.querySelector('.progressjs-container');
|
|
|
|
if (div) {
|
2016-07-30 03:14:51 +08:00
|
|
|
try {
|
2020-07-15 20:25:51 +08:00
|
|
|
div.hidden = true;
|
2016-07-30 03:14:51 +08:00
|
|
|
window.setTimeout(() => {
|
2020-07-15 20:25:51 +08:00
|
|
|
div.remove();
|
2016-07-30 03:14:51 +08:00
|
|
|
}, 200); // eslint-disable-line no-magic-numbers
|
2019-07-05 03:19:24 +08:00
|
|
|
} catch (e) {} // eslint-disable-line no-empty
|
2016-05-20 08:04:15 +08:00
|
|
|
}
|
|
|
|
});
|
2016-05-06 23:14:40 +08:00
|
|
|
|
2016-08-11 07:34:09 +08:00
|
|
|
require('Common/Booter');
|
2016-05-06 23:14:40 +08:00
|
|
|
|
2019-07-05 03:19:24 +08:00
|
|
|
if (window.__runBoot) {
|
2016-05-20 08:04:15 +08:00
|
|
|
window.__runBoot();
|
|
|
|
}
|