From 318c63ab90d7fc7422f2fda93cacdc9fd5793426 Mon Sep 17 00:00:00 2001 From: PizZaKatZe Date: Mon, 22 Mar 2021 11:26:59 +0100 Subject: [PATCH] Fix Jitsi integration Jitsi iframes are rendered directly in the cowebsite div next to the cowebsite > main element. This patch fixes the situation. --- front/src/WebRtc/CoWebsiteManager.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/front/src/WebRtc/CoWebsiteManager.ts b/front/src/WebRtc/CoWebsiteManager.ts index ada438ad..9f40c948 100644 --- a/front/src/WebRtc/CoWebsiteManager.ts +++ b/front/src/WebRtc/CoWebsiteManager.ts @@ -150,7 +150,8 @@ class CoWebsiteManager { */ public insertCoWebsite(callback: (cowebsite: HTMLDivElement) => Promise): void { this.load(); - this.currentOperationPromise = this.currentOperationPromise.then(() => callback(this.cowebsiteDiv)).then(() => { + this.cowebsiteMainDom.innerHTML = ``; + this.currentOperationPromise = this.currentOperationPromise.then(() => callback(this.cowebsiteMainDom)).then(() => { this.open(); setTimeout(() => { this.fire(); @@ -210,4 +211,4 @@ class CoWebsiteManager { } } -export const coWebsiteManager = new CoWebsiteManager(); \ No newline at end of file +export const coWebsiteManager = new CoWebsiteManager();