mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
abe0d9421f
* fix(polyfil): Catch error from promise https://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html * fix(catch): Error Make import promise catch a noop with commented out console.log for a debugging hint. * fix(eslint): Disable eslint console rule * fix(application): Use console error
11 lines
316 B
JavaScript
11 lines
316 B
JavaScript
import main from '../mastodon/main';
|
|
|
|
if (!window.Intl || !Object.assign || !Number.isNaN ||
|
|
!window.Symbol || !Array.prototype.includes) {
|
|
// load polyfills dynamically
|
|
import('../mastodon/polyfills').then(main).catch(e => {
|
|
console.error(e) // eslint-disable-line no-console
|
|
});
|
|
} else {
|
|
main();
|
|
}
|