MCPcopy Index your code
hub / github.com/zxlie/FeHelper / getImgCache

Function getImgCache

apps/json-format/format-lib.js:1479–1483  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1477 let $imgPreview = null;
1478 // 加载缓存
1479 function getImgCache() {
1480 try {
1481 return JSON.parse(sessionStorage.getItem('fehelper-img-preview-cache') || '{}');
1482 } catch (e) { return {}; }
1483 }
1484 function setImgCache(url, isImg) {
1485 let cache = getImgCache();
1486 cache[url] = isImg;

Callers 2

setImgCacheFunction · 0.85
_addEventsFunction · 0.85

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected