committed by
Eugen Rochko
parent
2d000e9c4e
commit
0ec77c5b3e
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;
|
||||
}
|
Reference in New Issue
Block a user