[Glitch] Remove Array.prototype.includes polyfill

Port c0886dee14 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
local
Nick Schonning 1 year ago committed by Claire
parent df6602ede1
commit 5b88b7e81a
  1. 5
      app/javascript/flavours/glitch/base_polyfills.js
  2. 1
      app/javascript/flavours/glitch/load_polyfills.js

@ -1,16 +1,11 @@
import 'intl';
import 'intl/locale-data/jsonp/en';
import 'es6-symbol/implement';
import includes from 'array-includes';
import assign from 'object-assign';
import values from 'object.values';
import { decode as decodeBase64 } from './utils/base64';
import promiseFinally from 'promise.prototype.finally';
if (!Array.prototype.includes) {
includes.shim();
}
if (!Object.assign) {
Object.assign = assign;
}

@ -12,7 +12,6 @@ function importExtraPolyfills() {
function loadPolyfills() {
const needsBasePolyfills = !(
Array.prototype.includes &&
HTMLCanvasElement.prototype.toBlob &&
window.Intl &&
Object.assign &&

Loading…
Cancel
Save