scy 🔜 WHY<p>Turns out, the easiest way to convert a "data:" URL to a JavaScript Blob object is not to split the URL into mime type, encoding, and data, and then, based on the encoding, do some wild atob() shenanigans</p><p>but instead</p><p>fetch(data_url).then(res => res.blob()).then(blob => …)</p><p>🙈 😂</p><p><a href="https://chaos.social/tags/JavaScript" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>JavaScript</span></a> <a href="https://chaos.social/tags/FetchAPI" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>FetchAPI</span></a></p>