1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-25 17:42:46 +02:00
This commit is contained in:
Pomax
2020-09-17 09:01:43 -07:00
parent ab4dd877ee
commit da82d2e41a

View File

@@ -261,10 +261,11 @@ class GraphicsElement extends CustomElement {
offDOM.innerHTML = this.originalHTML;
const newElement = offDOM.querySelector(`graphics-element`);
offDOM.style.display = `none`;
document.body.append(offDOM);
newElement.addEventListener(`loaded`, () =>
parent.replaceChild(newElement, this)
);
document.body.appendChild(offDOM);
newElement.addEventListener(`loaded`, () => {
parent.replaceChild(newElement, this);
document.body.removeChild(offDOM);
});
}
/**