Skip to content
Snippets Groups Projects
Commit 92219d6d authored by Guilherme Gazzo's avatar Guilherme Gazzo Committed by Guilherme Gazzo
Browse files

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

parent 834c34bb
No related branches found
No related tags found
No related merge requests found
...@@ -6,3 +6,18 @@ import './cssVars'; ...@@ -6,3 +6,18 @@ import './cssVars';
Object.fromEntries = Object.fromEntries || function fromEntries(iterable) { Object.fromEntries = Object.fromEntries || function fromEntries(iterable) {
return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {}); 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]));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment