Skip to content

Commit

Permalink
Class name for Download Link
Browse files Browse the repository at this point in the history
Add a class name to download link to allow styling.
Better than ID in case of multiple download :)
  • Loading branch information
X-Raym committed Nov 28, 2015
1 parent bbae52b commit 3e20561
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions download.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
if ('download' in a) { //html5 A[download]
a.href = url;
a.setAttribute("download", fn);
a.className = "download-js-link";
a.innerHTML = "downloading...";
D.body.appendChild(a);
setTimeout(function() {
Expand Down

0 comments on commit 3e20561

Please sign in to comment.