From bb3a10b0fcb8f64b3872859e1b328df0c122bd8f Mon Sep 17 00:00:00 2001 From: damencho Date: Thu, 27 Jun 2019 13:32:33 +0100 Subject: [PATCH] Safe guard for removed parent node of the iframe. --- modules/API/external/external_api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }