Created
December 28, 2019 12:23
-
-
Save rokumatsumoto/c9a82a17a0fbe8bc91c9f96b1fb24939 to your computer and use it in GitHub Desktop.
download blob
This file contains hidden or 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 URLObj = window.URL || window.webkitURL; | |
let a = document.createElement("a"); | |
a.href = URLObj.createObjectURL(blob); | |
a.download = "untitled.jpg"; | |
document.body.appendChild(a); | |
a.click(); | |
document.body.removeChild(a); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment