[FIX] Admin not working on IE11 (#19348)

Co-authored-by: Douglas Fabris <deefabris@gmail.com>
pull/19350/head^2
Guilherme Gazzo 5 years ago committed by Guilherme Gazzo
parent 834c34bb5e
commit 92219d6def
  1. 15
      client/polyfills/index.js

@ -6,3 +6,18 @@ import './cssVars';
Object.fromEntries = Object.fromEntries || function fromEntries(iterable) {
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
};
(function(arr) {
arr.forEach(function(item) {
if (item.hasOwnProperty('remove')) {
return;
}
Object.defineProperty(item, 'remove', {
configurable: true,
enumerable: true,
writable: true,
value: function remove() {
this.parentNode.removeChild(this);
},
});
});
}([Element.prototype, CharacterData.prototype, DocumentType.prototype]));

Loading…
Cancel
Save