[Glitch] Remove Array.prototype.includes polyfill
Port e9df65bad0
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
parent
95a401efa4
commit
8aafeb72cf
|
@ -1,16 +1,11 @@
|
||||||
import 'intl';
|
import 'intl';
|
||||||
import 'intl/locale-data/jsonp/en';
|
import 'intl/locale-data/jsonp/en';
|
||||||
import 'es6-symbol/implement';
|
import 'es6-symbol/implement';
|
||||||
import includes from 'array-includes';
|
|
||||||
import assign from 'object-assign';
|
import assign from 'object-assign';
|
||||||
import values from 'object.values';
|
import values from 'object.values';
|
||||||
import { decode as decodeBase64 } from './utils/base64';
|
import { decode as decodeBase64 } from './utils/base64';
|
||||||
import promiseFinally from 'promise.prototype.finally';
|
import promiseFinally from 'promise.prototype.finally';
|
||||||
|
|
||||||
if (!Array.prototype.includes) {
|
|
||||||
includes.shim();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Object.assign) {
|
if (!Object.assign) {
|
||||||
Object.assign = assign;
|
Object.assign = assign;
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,6 @@ function importExtraPolyfills() {
|
||||||
|
|
||||||
function loadPolyfills() {
|
function loadPolyfills() {
|
||||||
const needsBasePolyfills = !(
|
const needsBasePolyfills = !(
|
||||||
Array.prototype.includes &&
|
|
||||||
HTMLCanvasElement.prototype.toBlob &&
|
HTMLCanvasElement.prototype.toBlob &&
|
||||||
window.Intl &&
|
window.Intl &&
|
||||||
Object.assign &&
|
Object.assign &&
|
||||||
|
|
Loading…
Reference in New Issue