mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add fullscreen button
This commit is contained in:
parent
5516e8b168
commit
fa50a882d3
3 changed files with 30 additions and 1 deletions
|
@ -38,5 +38,14 @@ define([], function () {
|
|||
return document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement ? true : false;
|
||||
};
|
||||
|
||||
fullscreenManager.prototype.toggleFullscreen = function () {
|
||||
|
||||
if (this.isFullScreen()) {
|
||||
this.exitFullscreen();
|
||||
} else {
|
||||
this.requestFullscreen();
|
||||
}
|
||||
};
|
||||
|
||||
return new fullscreenManager();
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue