Demo: fix sudo crashing if no argument is passed

box-drawing
cpsdqs 7 years ago
parent 2bd167304c
commit db8505b75d
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 2
      js/term/demo.js

@ -838,7 +838,7 @@ let demoshIndex = {
destroy () { destroy () {
if (this.didDestroy) return if (this.didDestroy) return
this.didDestroy = true this.didDestroy = true
this.child.destroy() if (this.child) this.child.destroy()
super.destroy() super.destroy()
} }
}, },

Loading…
Cancel
Save