From 74ba6a96fc5df9654766ac21593d5c8274d98fb2 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sun, 9 Feb 2020 10:36:32 +0000 Subject: Set download attribute for HTML5 only --- src/js/controls.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/js/controls.js b/src/js/controls.js index f93cb8a3..1cce51f6 100644 --- a/src/js/controls.js +++ b/src/js/controls.js @@ -1578,9 +1578,13 @@ const controls = { element: 'a', href: this.download, target: '_blank', - download: '', }); + // Set download attribute for HTML5 only + if (this.isHTML5) { + attributes.download = ''; + } + const { download } = this.config.urls; if (!is.url(download) && this.isEmbed) { -- cgit v1.2.3