Apply suggestions

This commit is contained in:
Cameron
2020-08-10 09:53:37 +01:00
parent 3925c8eddb
commit e0f1ac833e
+4 -6
View File
@@ -4,10 +4,8 @@ import appHost from 'apphost';
import * as htmlMediaHelper from 'htmlMediaHelper';
function getDefaultProfile() {
return new Promise(function (resolve, reject) {
import('browserdeviceprofile').then(({default: profileBuilder}) => {
resolve(profileBuilder({}));
});
return import('browserdeviceprofile').then(({ default: profileBuilder }) => {
return profileBuilder({});
});
}
@@ -53,7 +51,7 @@ function supportsFade() {
}
function requireHlsPlayer(callback) {
import('hlsjs').then(({default: hls}) => {
import('hlsjs').then(({ default: hls }) => {
window.Hls = hls;
callback();
});
@@ -70,7 +68,7 @@ function enableHlsPlayer(url, item, mediaSource, mediaType) {
// issue head request to get content type
return new Promise(function (resolve, reject) {
import('fetchHelper').then(({default: fetchHelper}) => {
import('fetchHelper').then((fetchHelper) => {
fetchHelper.ajax({
url: url,
type: 'HEAD'