mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
multiple javascript error fixes
This commit is contained in:
parent
e525a46068
commit
68079d96a1
4 changed files with 19 additions and 21 deletions
|
@ -785,7 +785,11 @@ function renderImage(page, item) {
|
|||
}
|
||||
|
||||
function refreshDetailImageUserData(elem, item) {
|
||||
elem.querySelector('.detailImageProgressContainer').innerHTML = indicators.getProgressBarHtml(item);
|
||||
const container = elem.querySelector('.detailImageProgressContainer');
|
||||
|
||||
if (container) {
|
||||
container.innerHTML = indicators.getProgressBarHtml(item);
|
||||
}
|
||||
}
|
||||
|
||||
function refreshImage(page, item) {
|
||||
|
|
|
@ -18,6 +18,8 @@ import '../../../elements/emby-slider/emby-slider';
|
|||
import '../../../elements/emby-button/paper-icon-button-light';
|
||||
import '../../../assets/css/videoosd.css';
|
||||
import ServerConnections from '../../../components/ServerConnections';
|
||||
import shell from '../../../scripts/shell';
|
||||
import SubtitleSync from '../../../components/subtitlesync/subtitlesync';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
@ -998,14 +1000,12 @@ import ServerConnections from '../../../components/ServerConnections';
|
|||
}
|
||||
|
||||
function toggleSubtitleSync(action) {
|
||||
import('../../../components/subtitlesync/subtitlesync').then((SubtitleSync) => {
|
||||
const player = currentPlayer;
|
||||
if (subtitleSyncOverlay) {
|
||||
subtitleSyncOverlay.toggle(action);
|
||||
} else if (player) {
|
||||
subtitleSyncOverlay = new SubtitleSync(player);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function destroySubtitleSync() {
|
||||
|
@ -1229,9 +1229,7 @@ import ServerConnections from '../../../components/ServerConnections';
|
|||
let playPauseClickTimeout;
|
||||
function onViewHideStopPlayback() {
|
||||
if (playbackManager.isPlayingVideo()) {
|
||||
import('../../../scripts/shell').then((shell) => {
|
||||
shell.disableFullscreen();
|
||||
});
|
||||
|
||||
clearTimeout(playPauseClickTimeout);
|
||||
const player = currentPlayer;
|
||||
|
@ -1249,9 +1247,7 @@ import ServerConnections from '../../../components/ServerConnections';
|
|||
}
|
||||
}
|
||||
|
||||
import('../../../scripts/shell').then(({default: shell}) => {
|
||||
shell.enableFullscreen();
|
||||
});
|
||||
|
||||
let currentPlayer;
|
||||
let comingUpNextDisplayed;
|
||||
|
|
|
@ -2,11 +2,10 @@ import { Events } from 'jellyfin-apiclient';
|
|||
import browser from '../../scripts/browser';
|
||||
import { appHost } from '../../components/apphost';
|
||||
import * as htmlMediaHelper from '../../components/htmlMediaHelper';
|
||||
import profileBuilder from '../../scripts/browserDeviceProfile';
|
||||
|
||||
function getDefaultProfile() {
|
||||
return import('../../scripts/browserDeviceProfile').then(({ default: profileBuilder }) => {
|
||||
return profileBuilder({});
|
||||
});
|
||||
}
|
||||
|
||||
let fadeTimeout;
|
||||
|
|
|
@ -27,6 +27,7 @@ import itemHelper from '../../components/itemHelper';
|
|||
import Screenfull from 'screenfull';
|
||||
import globalize from '../../scripts/globalize';
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
import profileBuilder from '../../scripts/browserDeviceProfile';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
@ -140,9 +141,7 @@ function tryRemoveElement(elem) {
|
|||
}
|
||||
|
||||
function getDefaultProfile() {
|
||||
return import('../../scripts/browserDeviceProfile').then(({default: profileBuilder}) => {
|
||||
return profileBuilder({});
|
||||
});
|
||||
}
|
||||
|
||||
export class HtmlVideoPlayer {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue