Created
June 2, 2018 17:27
-
-
Save yhuag/47a29fb6ec686f93cdcbda09872be435 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
download: function () { | |
let csvContent = "data:text/csv;charset=utf-8,"; | |
csvContent += document.getElementById("bulktextarea").value; | |
var encodedUri = encodeURI(csvContent); | |
var link = document.createElement("a"); | |
link.setAttribute("href", encodedUri); | |
link.setAttribute("download", "BitcoinKeys.csv"); | |
document.body.appendChild(link); | |
link.click(); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment