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();