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

modify necessary void replacements

This commit is contained in:
sancodes 2022-03-21 20:50:19 -07:00
parent 87f47d8001
commit 408f2b2bda
11 changed files with 33 additions and 30 deletions

View file

@ -54,14 +54,14 @@ import { appRouter } from '../../../components/appRouter';
recordingButtonManager = null;
}
return void view.querySelector('.btnRecord').classList.add('hide');
return view.querySelector('.btnRecord').classList.add('hide');
}
ServerConnections.getApiClient(item.ServerId).getCurrentUser().then(function (user) {
if (user.Policy.EnableLiveTvManagement) {
import('../../../components/recordingcreator/recordingbutton').then(({default: RecordingButton}) => {
if (recordingButtonManager) {
return void recordingButtonManager.refreshItem(item);
return recordingButtonManager.refreshItem(item);
}
recordingButtonManager = new RecordingButton({
@ -1449,7 +1449,7 @@ import { appRouter } from '../../../components/appRouter';
/* eslint-disable-next-line compat/compat */
dom.addEventListener(view, window.PointerEvent ? 'pointerdown' : 'click', function (e) {
if (dom.parentWithClass(e.target, ['videoOsdBottom', 'upNextContainer'])) {
return void showOsd();
return showOsd();
}
const pointerType = e.pointerType || (layoutManager.mobile ? 'touch' : 'mouse');