mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
Upgraded some old JavaScript to ECMAScript 1.6
Removed some jQuery references Added JavaScript Globals.$htmlCL for frequently used window.document.documentElement.classList
This commit is contained in:
parent
a6a337e5ce
commit
0b0747b8dc
19 changed files with 142 additions and 151 deletions
|
|
@ -4,12 +4,12 @@ import { progressJs } from '../vendors/Progress.js/src/progress.js';
|
|||
window.progressJs = window.progressJs || progressJs();
|
||||
|
||||
window.progressJs.onbeforeend(() => {
|
||||
const _$ = window.$;
|
||||
if (_$) {
|
||||
const div = window.document.querySelector('.progressjs-container');
|
||||
if (div) {
|
||||
try {
|
||||
_$('.progressjs-container').hide();
|
||||
div.hidden = true;
|
||||
window.setTimeout(() => {
|
||||
_$('.progressjs-container').remove();
|
||||
div.remove();
|
||||
}, 200); // eslint-disable-line no-magic-numbers
|
||||
} catch (e) {} // eslint-disable-line no-empty
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue