Skip to content

Commit

Permalink
add classes to download link
Browse files Browse the repository at this point in the history
  • Loading branch information
andreswebs authored and kesor committed Feb 23, 2021
1 parent d5dc2bb commit 3344863
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2198,6 +2198,7 @@
const link = document.createElement("a");
const url = URL.createObjectURL(blob);
link.setAttribute("href", url);
link.className = "btn btn-primary btn-sm";
link.textContent = `Download ${fileName}`
if (link.download !== undefined) {
link.setAttribute("download", fileName);
Expand Down

0 comments on commit 3344863

Please sign in to comment.