mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Converting attachment data to base64-encoded data uris takes O(n) and there's no need! URL.createObjectURL returns a magic link that can be set as the `src` attribute to `img`, `video`, and `audio` tags to load blob data directly without copying. https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL