Set download attribute for HTML5 only

This commit is contained in:
Sam Potts 2020-02-09 10:36:32 +00:00
parent 59e3ef7248
commit 74ba6a96fc

6
src/js/controls.js vendored
View File

@ -1578,9 +1578,13 @@ const controls = {
element: 'a', element: 'a',
href: this.download, href: this.download,
target: '_blank', target: '_blank',
download: '',
}); });
// Set download attribute for HTML5 only
if (this.isHTML5) {
attributes.download = '';
}
const { download } = this.config.urls; const { download } = this.config.urls;
if (!is.url(download) && this.isEmbed) { if (!is.url(download) && this.isEmbed) {