fix placeholders again
This commit is contained in:
parent
e0cdcc46c5
commit
1606c32b9e
|
@ -200,7 +200,10 @@ class OutputMode {
|
||||||
}
|
}
|
||||||
|
|
||||||
clearConsole() {
|
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();
|
this.console.replaceChildren();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -242,6 +245,7 @@ class OutputMode {
|
||||||
// Fade the iframe in after it becomes visible, and remove the image.
|
// Fade the iframe in after it becomes visible, and remove the image.
|
||||||
setTimeout(() => this.iframe.classList.add("loaded"), 0);
|
setTimeout(() => this.iframe.classList.add("loaded"), 0);
|
||||||
this.frame.removeChild(this.frame.placeholderImage);
|
this.frame.removeChild(this.frame.placeholderImage);
|
||||||
|
this.frame.placeholderImage = null;
|
||||||
} else {
|
} else {
|
||||||
// If there is no image, don't do the fade in.
|
// If there is no image, don't do the fade in.
|
||||||
this.iframe.classList.add("loaded");
|
this.iframe.classList.add("loaded");
|
||||||
|
|
Loading…
Reference in a new issue