mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-25 13:51:13 +00:00
9fc3da0264
* use cross-fetch * remove from utils usage
7 lines
188 B
TypeScript
7 lines
188 B
TypeScript
import fetch from "cross-fetch";
|
|
|
|
export async function fetchIconPng(iconUrl: string) {
|
|
return await fetch(iconUrl)
|
|
.then(res => res.blob())
|
|
.then(blob => blob.arrayBuffer());
|
|
}
|