mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-25 17:42:46 +02:00
.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user