1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fix device dialog

This commit is contained in:
Luke Pulverenti 2016-03-28 14:30:29 -04:00
parent 759d707b7e
commit ad97f736bf

View file

@ -178,10 +178,13 @@
var destination = '';
dlg.querySelector('.btnRemoteControl').addEventListener('click', function () {
destination = 'nowplaying.html';
dialogHelper.close(dlg);
});
var btnRemoteControl = dlg.querySelector('.btnRemoteControl');
if (btnRemoteControl) {
btnRemoteControl.addEventListener('click', function () {
destination = 'nowplaying.html';
dialogHelper.close(dlg);
});
}
dlg.querySelector('.btnDisconnect').addEventListener('click', function () {
MediaController.disconnectFromPlayer();