mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 18:06:35 +00:00
fix(MediaController): remove sharing state when hiding
This commit is contained in:
@@ -221,7 +221,8 @@
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
this.mediaControlBar.setAttribute('hidden', 'true');
|
this.mediaControlBar.setAttribute('hidden', 'true')
|
||||||
|
this.mediaControlBar.removeAttribute('media-sharing');
|
||||||
gZenUIManager.updateTabsToolbar();
|
gZenUIManager.updateTabsToolbar();
|
||||||
gZenUIManager.restoreScrollbarState();
|
gZenUIManager.restoreScrollbarState();
|
||||||
});
|
});
|
||||||
@@ -235,7 +236,6 @@
|
|||||||
if (this._currentMediaController.isBeingUsedInPIPModeOrFullscreen) return this.hideMediaControls();
|
if (this._currentMediaController.isBeingUsedInPIPModeOrFullscreen) return this.hideMediaControls();
|
||||||
|
|
||||||
this.updatePipButton();
|
this.updatePipButton();
|
||||||
this.mediaControlBar.removeAttribute('media-sharing');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const mediaInfoElements = [this.mediaTitle, this.mediaArtist];
|
const mediaInfoElements = [this.mediaTitle, this.mediaArtist];
|
||||||
|
Reference in New Issue
Block a user