Skip to content
Snippets Groups Projects
Commit abe0d942 authored by Stephen Burgess's avatar Stephen Burgess Committed by Eugen Rochko
Browse files

Catch import promise in application.js (#3041)

* 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
parent 7c1f3f81
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,9 @@ 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);
import('../mastodon/polyfills').then(main).catch(e => {
console.error(e) // eslint-disable-line no-console
});
} else {
main();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment