mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix: do not repeat fullscreen hack if already set
This commit is contained in:
parent
2e66ce13e6
commit
118f9e1920
1 changed files with 7 additions and 0 deletions
|
@ -1389,6 +1389,13 @@ function tryRemoveElement(elem) {
|
||||||
// we need to hide scrollbar when starting playback from page with animated background
|
// we need to hide scrollbar when starting playback from page with animated background
|
||||||
if (options.fullscreen) {
|
if (options.fullscreen) {
|
||||||
document.body.classList.add('hide-scroll');
|
document.body.classList.add('hide-scroll');
|
||||||
|
|
||||||
|
// Enter fullscreen in the webOS browser to hide the top bar
|
||||||
|
if (!this.forcedFullscreen && !window.NativeShell && browser.web0s && Screenfull.isEnabled) {
|
||||||
|
Screenfull.request().then(() => {
|
||||||
|
this.forcedFullscreen = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.resolve(dlg.querySelector('video'));
|
return Promise.resolve(dlg.querySelector('video'));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue