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