aboutsummaryrefslogtreecommitdiffstats
path: root/src/js/plyr.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/js/plyr.js')
-rw-r--r--src/js/plyr.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/js/plyr.js b/src/js/plyr.js
index 77582dd7..d549b177 100644
--- a/src/js/plyr.js
+++ b/src/js/plyr.js
@@ -789,6 +789,15 @@ class Plyr {
}
/**
+ * Get a download URL (either source or custom)
+ */
+ get download() {
+ const { download } = this.config.urls;
+
+ return is.url(download) ? download : this.source;
+ }
+
+ /**
* Set the poster image for a video
* @param {input} - the URL for the new poster image
*/