MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / getImageData

Function getImageData

src/background/utils/icon.js:24–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22const iconDataCache = {};
23/** @return {string | Promise<string>} */
24export const getImageData = url => iconCache[url] || (iconCache[url] = loadIcon(url));
25// Firefox Android does not support such APIs, use noop
26const browserAction = (() => {
27 // Using `chrome` namespace in order to skip our browser.js polyfill in Chrome

Callers 1

getIconCacheFunction · 0.90

Calls 1

loadIconFunction · 0.85

Tested by

no test coverage detected