From bc19164c25c2a4264b40f37b6f7c2804e9ccc2f7 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 31 Jan 2021 01:42:08 +0100 Subject: [PATCH] fix pt 4 --- src/ext/lib/video-data/PlayerData.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ext/lib/video-data/PlayerData.js b/src/ext/lib/video-data/PlayerData.js index 51de27e..b131d82 100644 --- a/src/ext/lib/video-data/PlayerData.js +++ b/src/ext/lib/video-data/PlayerData.js @@ -87,9 +87,8 @@ class PlayerData { // player size observer may not be strictly necessary here onPlayerDimensionsChanged(mutationList, observer, context) { - console.log("context:", context, "this:", this); - if (context.checkPlayerSizeChange()) { - context.videoData.resizer.restore(); + if (this?.checkPlayerSizeChange()) { + this.videoData.resizer.restore(); } }