forked from mystiq/hydrogen-web
Element.remove polyfill
This commit is contained in:
parent
8a9bc315e6
commit
a7acb0278d
1 changed files with 6 additions and 0 deletions
|
@ -19,6 +19,12 @@ limitations under the License.
|
|||
import "core-js/stable";
|
||||
import "regenerator-runtime/runtime";
|
||||
import "mdn-polyfills/Element.prototype.closest";
|
||||
// TODO: contribute this to mdn-polyfills
|
||||
if (!Element.prototype.remove) {
|
||||
Element.prototype.remove = function remove() {
|
||||
this.parentNode.removeChild(this);
|
||||
};
|
||||
}
|
||||
|
||||
import {xhrRequest} from "./matrix/net/request/xhr.js";
|
||||
import {SessionContainer} from "./matrix/SessionContainer.js";
|
||||
|
|
Loading…
Reference in a new issue