From 2348f815c64060db05b4eb135c1285d80ff38d0f Mon Sep 17 00:00:00 2001 From: Dmitry Lyzo Date: Fri, 7 Oct 2022 15:37:01 +0300 Subject: [PATCH] Remove resizeObserver Leftover from 0cb54feb539ef4e7e7192b1fc92fdb5de24b4815 --- src/plugins/htmlVideoPlayer/plugin.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 1611684890..677f2c38f7 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -273,10 +273,6 @@ function tryRemoveElement(elem) { * @type {any | undefined} */ #lastProfile; - /** - * @type {MutationObserver | IntersectionObserver | undefined} (Unclear observer typing) - */ - #resizeObserver; constructor() { if (browser.edgeUwp) { @@ -963,11 +959,6 @@ function tryRemoveElement(elem) { * @private */ destroyCustomTrack(videoElement) { - if (this.#resizeObserver) { - this.#resizeObserver.disconnect(); - this.#resizeObserver = null; - } - if (this.#videoSubtitlesElem) { const subtitlesContainer = this.#videoSubtitlesElem.parentNode; if (subtitlesContainer) {