From 226cfb654e898eaf125b1e125886355ffef0e36b Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 8 Feb 2021 20:44:49 +0100 Subject: [PATCH] We don't need this logging on master This reverts commit dc71a2586399d269758610f1941003f8c523f5ee. --- src/ext/lib/video-data/VideoData.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/ext/lib/video-data/VideoData.js b/src/ext/lib/video-data/VideoData.js index 422e361..8643422 100644 --- a/src/ext/lib/video-data/VideoData.js +++ b/src/ext/lib/video-data/VideoData.js @@ -370,24 +370,16 @@ class VideoData { const ph = +(pcs.height.split('px')[0]); const pw = +(pcs.width.split('px')[0]); - console.info( - '---- [ video offsets & stuff ] ----\n', - 'video offset x:', translateX, '(x2:', translateX * 2, ') + width:', vw, 'should = player width:', pw, '\n', - 'video offset y:', translateY, '(x2:', translateY * 2, ') + height:', vh, 'should = player height:', ph - ); // TODO: check & account for panning and alignment if (transformMatrix[0] !== 'none' && this.isWithin(vh, (ph - (translateY * 2)), 2) && this.isWithin(vw, (pw - (translateX * 2)), 2)) { - console.info('offsets are within tolerance'); } else { - console.warn('offsets are incorrect') this.player.forceDetectPlayerElementChange(); - this.restoreAr(); } } catch(e) { - console.error('Validating video offsets failed:', e) + // do nothing on fail } }