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