MCPcopy Index your code
hub / github.com/darkreader/darkreader / readCSSFetchCache

Function readCSSFetchCache

src/inject/cache.ts:83–90  ·  view source on GitHub ↗
(url: string)

Source from the content-addressed store, hash-verified

81}
82
83export function readCSSFetchCache(url: string): string | null {
84 const key = `${STORAGE_KEY_CSS_FETCH_PREFIX}${url}`;
85 try {
86 return sessionStorage.getItem(key) ?? null;
87 } catch (err) {
88 }
89 return null;
90}

Callers 1

loadTextFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected