mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-18 11:28:23 -07:00
14 lines
351 B
JavaScript
14 lines
351 B
JavaScript
define(['dom', 'fullscreenManager'], function (dom, fullscreenManager) {
|
|
|
|
dom.addEventListener(window, 'dblclick', function () {
|
|
|
|
if (fullscreenManager.isFullScreen()) {
|
|
fullscreenManager.exitFullscreen();
|
|
} else {
|
|
fullscreenManager.requestFullscreen();
|
|
}
|
|
|
|
}, {
|
|
passive: true
|
|
});
|
|
}); |