From db8505b75d90fcf7232e27701b74bab3d31f3373 Mon Sep 17 00:00:00 2001 From: cpsdqs Date: Tue, 3 Oct 2017 09:37:16 +0200 Subject: [PATCH] Demo: fix sudo crashing if no argument is passed --- js/term/demo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } },