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',
|
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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user