mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Apply suggestions
This commit is contained in:
parent
3925c8eddb
commit
e0f1ac833e
1 changed files with 4 additions and 6 deletions
|
@ -4,10 +4,8 @@ import appHost from 'apphost';
|
||||||
import * as htmlMediaHelper from 'htmlMediaHelper';
|
import * as htmlMediaHelper from 'htmlMediaHelper';
|
||||||
|
|
||||||
function getDefaultProfile() {
|
function getDefaultProfile() {
|
||||||
return new Promise(function (resolve, reject) {
|
return import('browserdeviceprofile').then(({ default: profileBuilder }) => {
|
||||||
import('browserdeviceprofile').then(({default: profileBuilder}) => {
|
return profileBuilder({});
|
||||||
resolve(profileBuilder({}));
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +68,7 @@ function enableHlsPlayer(url, item, mediaSource, mediaType) {
|
||||||
|
|
||||||
// issue head request to get content type
|
// issue head request to get content type
|
||||||
return new Promise(function (resolve, reject) {
|
return new Promise(function (resolve, reject) {
|
||||||
import('fetchHelper').then(({default: fetchHelper}) => {
|
import('fetchHelper').then((fetchHelper) => {
|
||||||
fetchHelper.ajax({
|
fetchHelper.ajax({
|
||||||
url: url,
|
url: url,
|
||||||
type: 'HEAD'
|
type: 'HEAD'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue