mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
22 lines
729 B
JavaScript
22 lines
729 B
JavaScript
import remotecontrolFactory from '../../../components/remotecontrol/remotecontrol';
|
|
import libraryMenu from '../../../scripts/libraryMenu';
|
|
import '../../../elements/emby-button/emby-button';
|
|
|
|
export default function (view) {
|
|
const remoteControl = new remotecontrolFactory();
|
|
remoteControl.init(view, view.querySelector('.remoteControlContent'));
|
|
view.addEventListener('viewshow', function () {
|
|
libraryMenu.setTransparentMenu(true);
|
|
|
|
if (remoteControl) {
|
|
remoteControl.onShow();
|
|
}
|
|
});
|
|
view.addEventListener('viewbeforehide', function () {
|
|
libraryMenu.setTransparentMenu(false);
|
|
|
|
if (remoteControl) {
|
|
remoteControl.destroy();
|
|
}
|
|
});
|
|
}
|