diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js index 8d746cc2f..028baaee5 100644 --- a/modules/API/external/external_api.js +++ b/modules/API/external/external_api.js @@ -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); } }