aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plugins/vimeo.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plugins/vimeo.js')
-rw-r--r--src/js/plugins/vimeo.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/js/plugins/vimeo.js b/src/js/plugins/vimeo.js
index 7e104ffe..3aac5b2d 100644
--- a/src/js/plugins/vimeo.js
+++ b/src/js/plugins/vimeo.js
@@ -202,9 +202,15 @@ const vimeo = {
// Source
let currentSrc;
- player.embed.getVideoUrl().then(value => {
- currentSrc = value;
- });
+ player.embed
+ .getVideoUrl()
+ .then(value => {
+ currentSrc = value;
+ })
+ .catch(error => {
+ this.debug.warn(error);
+ });
+
Object.defineProperty(player.media, 'currentSrc', {
get() {
return currentSrc;