diff options
Diffstat (limited to 'dist/plyr.polyfilled.js')
-rw-r--r-- | dist/plyr.polyfilled.js | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/dist/plyr.polyfilled.js b/dist/plyr.polyfilled.js index 3a14da1b..6e7bbd34 100644 --- a/dist/plyr.polyfilled.js +++ b/dist/plyr.polyfilled.js @@ -6536,7 +6536,8 @@ typeof navigator === "object" && (function (global, factory) { noCookie: false, // Preview Thumbnails plugin previewThumbnails: { - enabled: false + enabled: false, + src: '' } }; @@ -9811,13 +9812,14 @@ typeof navigator === "object" && (function (global, factory) { var _this2 = this; return new Promise(function (resolve) { - if (!_this2.player.config.previewThumbnails.src) { + var src = _this2.player.config.previewThumbnails.src; + + if (is$1.empty(src)) { throw new Error('Missing previewThumbnails.src config attribute'); - } // previewThumbnails.src can be string or list. If string, convert into single-element list + } // If string, convert into single-element list - var src = _this2.player.config.previewThumbnails.src; - var urls = is$1.string(src) ? [src] : src; // Loop through each src url. Download and process the VTT file, storing the resulting data in this.thumbnails + var urls = is$1.string(src) ? [src] : src; // Loop through each src URL. Download and process the VTT file, storing the resulting data in this.thumbnails var promises = urls.map(function (u) { return _this2.getThumbnail(u); |