parent
2d000e9c4e
commit
0ec77c5b3e
5 changed files with 74 additions and 30 deletions
18
app/javascript/mastodon/polyfills.js
Normal file
18
app/javascript/mastodon/polyfills.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import 'intl';
|
||||
import 'intl/locale-data/jsonp/en.js';
|
||||
import 'es6-symbol/implement';
|
||||
import includes from 'array-includes';
|
||||
import assign from 'object-assign';
|
||||
import isNaN from 'is-nan';
|
||||
|
||||
if (!Array.prototype.includes) {
|
||||
includes.shim();
|
||||
}
|
||||
|
||||
if (!Object.assign) {
|
||||
Object.assign = assign;
|
||||
}
|
||||
|
||||
if (!Number.isNaN) {
|
||||
Number.isNaN = isNaN;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue