MCPcopy
hub / github.com/darkreader/darkreader / loadAsDataURL

Function loadAsDataURL

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

Source from the content-addressed store, hash-verified

28}
29
30export async function loadAsDataURL(url: string, mimeType?: string): Promise<string> {
31 const response = await getOKResponse(url, mimeType);
32 return await readResponseAsDataURL(response);
33}
34
35export async function loadAsBlob(url: string, mimeType?: string): Promise<Blob> {
36 const response = await getOKResponse(url, mimeType);

Callers 2

replaceBlobsFunction · 0.90
getDataURLFunction · 0.90

Calls 2

getOKResponseFunction · 0.85
readResponseAsDataURLFunction · 0.85

Tested by

no test coverage detected