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) {
|
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) {
|
function refreshImage(page, item) {
|
||||||
|
|
|
@ -18,6 +18,8 @@ import '../../../elements/emby-slider/emby-slider';
|
||||||
import '../../../elements/emby-button/paper-icon-button-light';
|
import '../../../elements/emby-button/paper-icon-button-light';
|
||||||
import '../../../assets/css/videoosd.css';
|
import '../../../assets/css/videoosd.css';
|
||||||
import ServerConnections from '../../../components/ServerConnections';
|
import ServerConnections from '../../../components/ServerConnections';
|
||||||
|
import shell from '../../../scripts/shell';
|
||||||
|
import SubtitleSync from '../../../components/subtitlesync/subtitlesync';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
/* eslint-disable indent */
|
||||||
|
|
||||||
|
@ -998,14 +1000,12 @@ import ServerConnections from '../../../components/ServerConnections';
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleSubtitleSync(action) {
|
function toggleSubtitleSync(action) {
|
||||||
import('../../../components/subtitlesync/subtitlesync').then((SubtitleSync) => {
|
const player = currentPlayer;
|
||||||
const player = currentPlayer;
|
if (subtitleSyncOverlay) {
|
||||||
if (subtitleSyncOverlay) {
|
subtitleSyncOverlay.toggle(action);
|
||||||
subtitleSyncOverlay.toggle(action);
|
} else if (player) {
|
||||||
} else if (player) {
|
subtitleSyncOverlay = new SubtitleSync(player);
|
||||||
subtitleSyncOverlay = new SubtitleSync(player);
|
}
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function destroySubtitleSync() {
|
function destroySubtitleSync() {
|
||||||
|
@ -1229,9 +1229,7 @@ import ServerConnections from '../../../components/ServerConnections';
|
||||||
let playPauseClickTimeout;
|
let playPauseClickTimeout;
|
||||||
function onViewHideStopPlayback() {
|
function onViewHideStopPlayback() {
|
||||||
if (playbackManager.isPlayingVideo()) {
|
if (playbackManager.isPlayingVideo()) {
|
||||||
import('../../../scripts/shell').then((shell) => {
|
shell.disableFullscreen();
|
||||||
shell.disableFullscreen();
|
|
||||||
});
|
|
||||||
|
|
||||||
clearTimeout(playPauseClickTimeout);
|
clearTimeout(playPauseClickTimeout);
|
||||||
const player = currentPlayer;
|
const player = currentPlayer;
|
||||||
|
@ -1249,9 +1247,7 @@ import ServerConnections from '../../../components/ServerConnections';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
import('../../../scripts/shell').then(({default: shell}) => {
|
shell.enableFullscreen();
|
||||||
shell.enableFullscreen();
|
|
||||||
});
|
|
||||||
|
|
||||||
let currentPlayer;
|
let currentPlayer;
|
||||||
let comingUpNextDisplayed;
|
let comingUpNextDisplayed;
|
||||||
|
|
|
@ -2,11 +2,10 @@ import { Events } from 'jellyfin-apiclient';
|
||||||
import browser from '../../scripts/browser';
|
import browser from '../../scripts/browser';
|
||||||
import { appHost } from '../../components/apphost';
|
import { appHost } from '../../components/apphost';
|
||||||
import * as htmlMediaHelper from '../../components/htmlMediaHelper';
|
import * as htmlMediaHelper from '../../components/htmlMediaHelper';
|
||||||
|
import profileBuilder from '../../scripts/browserDeviceProfile';
|
||||||
|
|
||||||
function getDefaultProfile() {
|
function getDefaultProfile() {
|
||||||
return import('../../scripts/browserDeviceProfile').then(({ default: profileBuilder }) => {
|
return profileBuilder({});
|
||||||
return profileBuilder({});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let fadeTimeout;
|
let fadeTimeout;
|
||||||
|
|
|
@ -27,6 +27,7 @@ import itemHelper from '../../components/itemHelper';
|
||||||
import Screenfull from 'screenfull';
|
import Screenfull from 'screenfull';
|
||||||
import globalize from '../../scripts/globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
import ServerConnections from '../../components/ServerConnections';
|
import ServerConnections from '../../components/ServerConnections';
|
||||||
|
import profileBuilder from '../../scripts/browserDeviceProfile';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
/* eslint-disable indent */
|
||||||
|
|
||||||
|
@ -140,9 +141,7 @@ function tryRemoveElement(elem) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDefaultProfile() {
|
function getDefaultProfile() {
|
||||||
return import('../../scripts/browserDeviceProfile').then(({default: profileBuilder}) => {
|
return profileBuilder({});
|
||||||
return profileBuilder({});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export class HtmlVideoPlayer {
|
export class HtmlVideoPlayer {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue