1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-28 13:38:36 +09:00
mastodon/app/javascript/packs/application.js

12 lines
316 B
JavaScript
Raw Normal View History

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();
}