fix (chrome80): support for older chrome

This commit is contained in:
MickaelK 2024-07-23 00:24:07 +10:00
parent 233f9c12fe
commit 3f303a4f57

View file

@ -1,6 +1,6 @@
Document.prototype.replaceChildren ||= replaceChildren;
DocumentFragment.prototype.replaceChildren ||= replaceChildren;
Element.prototype.replaceChildren ||= replaceChildren;
Document.prototype.replaceChildren = replaceChildren;
DocumentFragment.prototype.replaceChildren = replaceChildren;
Element.prototype.replaceChildren = replaceChildren;
function replaceChildren(...new_children) {
const { childNodes } = this;