Merge pull request #7573 from Slowlife01/fixmedia

fix(MediaController): remove sharing state when hiding
This commit is contained in:
mr. m
2025-04-13 11:41:24 +02:00
committed by GitHub

View File

@@ -222,6 +222,7 @@
)
.then(() => {
this.mediaControlBar.setAttribute('hidden', 'true');
this.mediaControlBar.removeAttribute('media-sharing');
gZenUIManager.updateTabsToolbar();
gZenUIManager.restoreScrollbarState();
});
@@ -235,7 +236,6 @@
if (this._currentMediaController.isBeingUsedInPIPModeOrFullscreen) return this.hideMediaControls();
this.updatePipButton();
this.mediaControlBar.removeAttribute('media-sharing');
}
const mediaInfoElements = [this.mediaTitle, this.mediaArtist];