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

Apply suggestions from code review

Co-authored-by: Cameron <Influence365@gmail.com>
This commit is contained in:
Cromefire_ 2020-07-22 21:08:44 +02:00 committed by GitHub
parent 1829651565
commit 99758f065e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -179,7 +179,7 @@ function supportsTextTracks() {
} }
function getDefaultProfile() { function getDefaultProfile() {
return import('browserdeviceprofile').then(profileBuilder => { return import('browserdeviceprofile').then(({default: profileBuilder}) => {
return profileBuilder({}); return profileBuilder({});
}); });
@ -308,7 +308,7 @@ function supportsTextTracks() {
* @private * @private
*/ */
setSrcWithFlvJs(instance, elem, options, url) { setSrcWithFlvJs(instance, elem, options, url) {
return import('flvjs').then(flvjs => { return import('flvjs').then(({default: flvjs}) => {
const flvPlayer = flvjs.createPlayer({ const flvPlayer = flvjs.createPlayer({
type: 'flv', type: 'flv',
url: url url: url
@ -1073,7 +1073,6 @@ function supportsTextTracks() {
this.customTrackIndex = -1; this.customTrackIndex = -1;
this.currentClock = null; this.currentClock = null;
this.currentSubtitlesOctopus = null;
this._currentAspectRatio = null; this._currentAspectRatio = null;
const octopus = this.currentSubtitlesOctopus; const octopus = this.currentSubtitlesOctopus;