Set download attribute for HTML5 only
This commit is contained in:
parent
59e3ef7248
commit
74ba6a96fc
6
src/js/controls.js
vendored
6
src/js/controls.js
vendored
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user