Skip to content

Commit 2005265

Browse files
committed
fix download via link
1 parent 18fe5b5 commit 2005265

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/jquery.table2excel.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@
117117
a = document.createElement("a");
118118
a.download = getFileName(e.settings);
119119
a.href = link;
120+
121+
document.body.appendChild(a);
122+
120123
a.click();
124+
125+
document.body.removeChild(a);
121126
}
122127

123128
return true;

0 commit comments

Comments
 (0)