From e6ae34397529ce5eb2703a26dccc70050dae2897 Mon Sep 17 00:00:00 2001 From: TabascoEye Date: Mon, 30 Aug 2021 19:44:50 +0200 Subject: [PATCH] Update CoWebsiteManager.ts typos and style --- front/src/WebRtc/CoWebsiteManager.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/front/src/WebRtc/CoWebsiteManager.ts b/front/src/WebRtc/CoWebsiteManager.ts index f293399c..db89a55c 100644 --- a/front/src/WebRtc/CoWebsiteManager.ts +++ b/front/src/WebRtc/CoWebsiteManager.ts @@ -166,7 +166,7 @@ class CoWebsiteManager { return iframe; } - public loadCoWebsite(url: string, base: string, allowApi?: boolean, allowPolicy?: string, widthpercent?: number): void { + public loadCoWebsite(url: string, base: string, allowApi?: boolean, allowPolicy?: string, widthPercent?: number): void { this.load(); this.cowebsiteMainDom.innerHTML = ``; @@ -190,8 +190,8 @@ class CoWebsiteManager { .then(() => Promise.race([onloadPromise, onTimeoutPromise])) .then(() => { this.open(); - if (widthpercent) { - this.widthpercent = widthpercent; + if (widthPercent) { + this.widthPercent = widthPercent; } setTimeout(() => { this.fire(); @@ -206,7 +206,7 @@ class CoWebsiteManager { /** * Just like loadCoWebsite but the div can be filled by the user. */ - public insertCoWebsite(callback: (cowebsite: HTMLDivElement) => Promise, jitsiWidth?: number): void { + public insertCoWebsite(callback: (cowebsite: HTMLDivElement) => Promise, widthPercent?: number): void { this.load(); this.cowebsiteMainDom.innerHTML = ``; this.currentOperationPromise = this.currentOperationPromise @@ -214,7 +214,7 @@ class CoWebsiteManager { .then(() => { this.open(); if (jitsiWidth) { - this.widthpercent = jitsiWidth; + this.widthPercent = widthPercent; } setTimeout(() => { this.fire();