MCPcopy
hub / github.com/darkreader/darkreader / loadAsBlob

Function loadAsBlob

src/utils/network.ts:35–38  ·  view source on GitHub ↗
(url: string, mimeType?: string)

Source from the content-addressed store, hash-verified

33}
34
35export async function loadAsBlob(url: string, mimeType?: string): Promise<Blob> {
36 const response = await getOKResponse(url, mimeType);
37 return await response.blob();
38}
39
40export async function readResponseAsDataURL(response: Response): Promise<string> {
41 const blob = await response.blob();

Callers 1

getImageDetailsFunction · 0.90

Calls 1

getOKResponseFunction · 0.85

Tested by

no test coverage detected