mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #523 from sourcelair/Tyriar-patch-1
Add null check on Terminal.element
This commit is contained in:
+1
-1
@@ -1045,7 +1045,7 @@ Terminal.prototype.destroy = function() {
|
||||
this._events = {};
|
||||
this.handler = function() {};
|
||||
this.write = function() {};
|
||||
if (this.element.parentNode) {
|
||||
if (this.element && this.element.parentNode) {
|
||||
this.element.parentNode.removeChild(this.element);
|
||||
}
|
||||
//this.emit('close');
|
||||
|
||||
Reference in New Issue
Block a user