Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Safe guard for removed parent node of the iframe.

damenchobb3a10b0fcb8
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index 8d746cc2f4..028baaee58 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);
}
}