From 99758f065e164a32d5098de3d2bbe458d73fae34 Mon Sep 17 00:00:00 2001 From: Cromefire_ Date: Wed, 22 Jul 2020 21:08:44 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Cameron --- src/plugins/htmlVideoPlayer/plugin.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 2a378a922..cf85a368b 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -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;