MCPcopy Create free account
hub / github.com/MALSync/MALSync / handleMalImages

Function handleMalImages

src/utils/general.ts:335–338  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

333}
334
335export function handleMalImages(url) {
336 if (url.indexOf('questionmark') !== -1) return api.storage.assetUrl('questionmark.gif');
337 return url;
338}
339
340export function getTooltip(text, style = '', direction = 'top') {
341 const rNumber = Math.floor(Math.random() * 1000 + 1);

Callers

nothing calls this directly

Calls 1

assetUrlMethod · 0.80

Tested by

no test coverage detected