about summary refs log tree commit diff
path: root/app/javascript/packs/application.js
blob: ca6b476e12da10c37a03340f2223d73434d3996a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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();
}