fix placeholders again

This commit is contained in:
liquidex 2024-02-21 23:28:13 +01:00
parent e0cdcc46c5
commit 1606c32b9e

View file

@ -200,7 +200,10 @@ class OutputMode {
}
clearConsole() {
this.frame.removeChild(this.frame.placeholderConsole);
if (this.frame.placeholderConsole != null) {
this.frame.removeChild(this.frame.placeholderConsole);
this.frame.placeholderConsole = null;
}
this.console.replaceChildren();
}
@ -242,6 +245,7 @@ class OutputMode {
// Fade the iframe in after it becomes visible, and remove the image.
setTimeout(() => this.iframe.classList.add("loaded"), 0);
this.frame.removeChild(this.frame.placeholderImage);
this.frame.placeholderImage = null;
} else {
// If there is no image, don't do the fade in.
this.iframe.classList.add("loaded");