This commit is contained in:
Tamius Han 2021-01-31 01:42:08 +01:00
parent 3ab619799a
commit bc19164c25

View File

@ -87,9 +87,8 @@ class PlayerData {
// player size observer may not be strictly necessary here // player size observer may not be strictly necessary here
onPlayerDimensionsChanged(mutationList, observer, context) { onPlayerDimensionsChanged(mutationList, observer, context) {
console.log("context:", context, "this:", this); if (this?.checkPlayerSizeChange()) {
if (context.checkPlayerSizeChange()) { this.videoData.resizer.restore();
context.videoData.resizer.restore();
} }
} }