about summary refs log tree commit diff
path: root/app/javascript/packs/application.js
blob: ea5b9f8f7ac8aa8b21b82b59d57594d85fb12dcf (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();
}