InvokeAI/invokeai/frontend/web/src/common
psychedelicious e675983e20
fix(ui): download image opens in new tab (#5625)
* fix(ui): download image opens in new tab

In some environments, a simple `a` element cannot trigger a download of an image. Fetching the image directly can get around this and provide more reliable download functionality.

* use hook for imageUrlToBlob so token gets sent if needed

---------

Co-authored-by: Mary Hipp <maryhipp@Marys-MacBook-Air.local>
2024-02-01 20:25:01 +00:00
..
components chore(ui): format 2024-01-28 19:57:53 +11:00
hooks fix(ui): download image opens in new tab (#5625) 2024-02-01 20:25:01 +00:00
util chore(ui): format 2024-01-28 19:57:53 +11:00