mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 09:56:36 +00:00
fix: add optional chaining to prevent errors when checking PIP mode or fullscreen status
This commit is contained in:
@@ -148,7 +148,7 @@ class ZenMediaController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
showMediaControls() {
|
showMediaControls() {
|
||||||
if (this._currentMediaController.isBeingUsedInPIPModeOrFullscreen) return this.hideMediaControls();
|
if (this._currentMediaController?.isBeingUsedInPIPModeOrFullscreen) return this.hideMediaControls();
|
||||||
if (!this.mediaControlBar.hasAttribute('hidden')) return;
|
if (!this.mediaControlBar.hasAttribute('hidden')) return;
|
||||||
|
|
||||||
this.updatePipButton();
|
this.updatePipButton();
|
||||||
|
Reference in New Issue
Block a user