From fee73519e6d55196a9af34d2f8d40201e2ff97b1 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 4 Apr 2021 15:48:46 +0200 Subject: [PATCH] formatting --- src/ext/lib/video-transform/Stretcher.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ext/lib/video-transform/Stretcher.ts b/src/ext/lib/video-transform/Stretcher.ts index a10328e..6af885a 100644 --- a/src/ext/lib/video-transform/Stretcher.ts +++ b/src/ext/lib/video-transform/Stretcher.ts @@ -271,17 +271,16 @@ squeezeFactor: ${squeezeFactor}`, '\nvideo', this.conf.video); * style attribute does). */ chromeBugMitigation(stretchFactors) { - console.log("limit zoom?", BrowserDetect.anyChromium, this.conf.player?.dimensions, this.settings?.active?.mitigations?.zoomLimit?.enabled); + console.log("limit zoom?", BrowserDetect.anyChromium, this.conf.player?.dimensions, this.settings?.active?.mitigations?.zoomLimit?.enabled, 'stack?', new Error().stack); if ( BrowserDetect.anyChromium - && (this.conf.player?.dimensions?.fullscreen || ! - this.settings?.active?.mitigations?.zoomLimit?.fullscreenOnly) + && (this.conf.player?.dimensions?.fullscreen || ! this.settings?.active?.mitigations?.zoomLimit?.fullscreenOnly) && this.settings?.active?.mitigations?.zoomLimit?.enabled ) { const playerAr = this.conf.player.dimensions.width / this.conf.player.dimensions.height; const streamAr = this.conf.video.videoWidth / this.conf.video.videoHeight; - let maxSafeAr; + let maxSafeAr: number; let arLimitFactor = this.settings?.active?.mitigations?.zoomLimit?.limit ?? 0.997; if (playerAr >= (streamAr * 1.1)) {