mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Update dependencies and configurations
This commit is contained in:
parent
dbbc83e4c8
commit
a1562e7145
18 changed files with 732 additions and 633 deletions
|
|
@ -201,6 +201,7 @@ class AbstractAjaxRemote
|
|||
this.oRequests[action] = oDefAjax;
|
||||
}
|
||||
|
||||
oDefAjax.catch(console.log);
|
||||
return oDefAjax;
|
||||
}
|
||||
|
||||
|
|
|
|||
15
dev/boot.js
15
dev/boot.js
|
|
@ -1,13 +1,12 @@
|
|||
import elementDatasetPolyfill from 'element-dataset';
|
||||
elementDatasetPolyfill();
|
||||
|
||||
require('json3');
|
||||
require('intersection-observer');
|
||||
|
||||
import window from 'window';
|
||||
import elementDatasetPolyfill from 'element-dataset';
|
||||
|
||||
import 'es6-object-assign/auto';
|
||||
|
||||
import {Promise} from 'es6-promise-polyfill/promise.js';
|
||||
import {progressJs} from '../vendors/Progress.js/src/progress.js';
|
||||
|
||||
window.Promise = window.Promise || Promise;
|
||||
window.progressJs = window.progressJs || progressJs();
|
||||
|
||||
window.progressJs.onbeforeend(() => {
|
||||
|
|
@ -24,10 +23,6 @@ window.progressJs.onbeforeend(() => {
|
|||
}
|
||||
});
|
||||
|
||||
elementDatasetPolyfill();
|
||||
|
||||
require('json3');
|
||||
require('intersection-observer');
|
||||
require('../vendors/modernizr/modernizr-custom.js');
|
||||
require('Common/Booter');
|
||||
|
||||
|
|
|
|||
15
dev/polyfills.js
Normal file
15
dev/polyfills.js
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
import 'core-js/features/object/assign';
|
||||
import 'core-js/features/array/includes';
|
||||
import 'core-js/features/string/includes';
|
||||
import 'core-js/features/promise';
|
||||
import 'raf/polyfill';
|
||||
|
||||
/* eslint-disable no-undefined, consistent-return */
|
||||
const log = console && console.log ? console.log : undefined;
|
||||
console.log = log ? (...props) => {
|
||||
if (props && props[0] && 0 === props[0].indexOf('JQMIGRATE:')) {
|
||||
return;
|
||||
}
|
||||
|
||||
return log(...props);
|
||||
} : undefined;
|
||||
Loading…
Add table
Add a link
Reference in a new issue