Safe guard for removed parent node of the iframe.

This commit is contained in:
damencho 2019-06-27 13:32:33 +01:00 committed by Дамян Минков
parent 97e8b31cee
commit bb3a10b0fc
1 changed files with 1 additions and 1 deletions

View File

@ -561,7 +561,7 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
this.emit('_willDispose');
this._transport.dispose();
this.removeAllListeners();
if (this._frame) {
if (this._frame && this._frame.parentNode) {
this._frame.parentNode.removeChild(this._frame);
}
}