Created
May 14, 2018 12:19
-
-
Save Gkiokan/e381b21ad7de269487f5a160c4de1f06 to your computer and use it in GitHub Desktop.
JS Download DataStream
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
let blob = new Blob([this.stream], { type: 'application/csv' } ) | |
let link = document.createElement('a') | |
link.href = window.URL.createObjectURL(blob) | |
link.download = this.get_download_name() | |
link.click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment