Fix download click for Firefox < 75 (attach to DOM)
This commit is contained in:
parent
74a6bcd92e
commit
4a31ebe112
1 changed files with 4 additions and 0 deletions
|
|
@ -74,7 +74,11 @@ BR.Export = L.Class.extend({
|
||||||
if (name) {
|
if (name) {
|
||||||
link.download = name;
|
link.download = name;
|
||||||
}
|
}
|
||||||
|
link.hidden = true;
|
||||||
|
// in Firefox < 75 click() only works when element is attached to DOM tree
|
||||||
|
document.body.appendChild(link);
|
||||||
link.click();
|
link.click();
|
||||||
|
link.remove();
|
||||||
},
|
},
|
||||||
|
|
||||||
_exportServer: function (e) {
|
_exportServer: function (e) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue