diff --git a/js/term/demo.js b/js/term/demo.js index 098577d..f321911 100644 --- a/js/term/demo.js +++ b/js/term/demo.js @@ -838,7 +838,7 @@ let demoshIndex = { destroy () { if (this.didDestroy) return this.didDestroy = true - this.child.destroy() + if (this.child) this.child.destroy() super.destroy() } },